We had one of our workflow running on create of lead which was updating one of the attribute in the lead. When the workflow was updating the record one of our plugin registered on the post update event of the lead was getting triggered. This was resulting in an error , so we had to update the post update plugin to include the callerOrigin to handle the things properly
if (context.CallerOrigin.ToString() != “Microsoft.Crm.Sdk.AsyncServiceOrigin”)
////////// our logic
}
CallerOrigin -Using it we can determine the origin of the call. Possible Values are
| Static Property | Description |
| Application | Gets the caller orgin for the application. |
| AsyncService | Gets the caller orgin for the async service. |
| WebServiceApi | Gets the caller orgin for the Web services. |
Bye…
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

Any thoughts about the appropriate property to be used for CRM 2015 plugins?
LikeLike