Diff between context.userid and context.initiatinguserid In MS CRM 2011 Plugin

Diff between context.userid and context.initiatinguserid In MS CRM 2011 Plugin

Situation: A plugin running from a impersonated context
Aim: Get the GUID of the user who has actually fired the plugin and not the GUID of the user under whose context the plugin is registered.
The context gives us both the GUIDs
  • context.initiatinguserid: gets the systemuser GUID who actually fired the plugin
  • context.userid : gets the  impersonated systemuser GUID
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s