Chris Jones
Chris Jones

Reputation: 2746

MS CRM Source of plug-in event

I have written a plug-in and would like to know if it was fired by , the web service api, Import data, web form or outlook client.

Is this possible?

Upvotes: 1

Views: 220

Answers (1)

Matt
Matt

Reputation: 4686

Look at the IPluginExecutionContext.CallerOrigin property (http://msdn.microsoft.com/en-us/library/cc156395.aspx). You can determine if it was from the application, async service, API, or if the plugin is being replayed after coming from offline.

Upvotes: 3

Related Questions