Hi all,
I'm having a problem with a plugin, basically the thing is that when I try to retrieve the preImage I'm getting an System.NullReferenceException, here's the specific error:
"Object reference not set to an instance of an object."
The thing is that I've checked the Plugin registration tool and below the step I can see the preImage registered as well as I can see it in CRM.
The technical details of the step are the following:
For the SetStateDynamicEntity step:
Message: SetStateDynamicEntity
Primary entity: account
Execution Order: 1
Pipeline stage: Post-Operation
Execution Mode: Synchronus
Deployment: server
For the SetState step(Because if you have a plugin registered in SetStateDynamicEntity you have to also register another step with SetState):
Message: SetState
Primary entity: account
Execution Order: 1
Pipeline stage: Post-Operation
Execution Mode: Synchronus
Deployment: server