scottdurow / SparkleXrm

An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
MIT License
265 stars 197 forks source link

SetStateDynamicEntity missing from MessageNameEnum #271

Open pritchie99 opened 6 years ago

pritchie99 commented 6 years ago

Hi, when I register a plugin step using the Plugin Registration tool I can select to register against either "SetState" or "SetStateDynamicEntity" messages, however MessageNameEnum definition (SparkleXrm/spkl/SparkleXrm.Tasks/CrmPluginRegistrationAttribute.cs) only contains a value for SetState.

How can I use SparkleXrm to register a Step against SetStateDynamicEntity please, or do you think this is no longer required?

kind regards, Paul.

fedejousset commented 5 years ago

You can workaround it using the SetStateDynamicEntity message as string:

    [CrmPluginRegistration(
        "SetStateDynamicEntity",
        "contact",
        StageEnum.PreOperation...

Not sure if the message should be included in the Enum though, these specialized operations have been deprecated and we should use now the Update message: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/org-service/perform-specialized-operations-using-update