Customer Engagement & Dynamics CRM Forum

 View Only
  • 1.  Plugin Context - Initiating User ID

    Posted Feb 26, 2020 11:11 AM
    I understand that the Initiating User ID in the CRM plugin execution context is the user who caused the event that triggered the plugin.

    What would the initiating user ID be if that plugin then caused another plugin to fire?

    1. User creates case
    2. Plugin triggered to create a servicing note on the case
    3. Servicing note creation causes another plugin to trigger that takes the user's signature and places it on the servicing note

    The case-triggered plugin would have the initiating user ID set to the user who created the case.

    What would the servicing note-triggered plugin have for the initiating user ID?


    Tim Neau
    Systems Developer
    Federated Insurance
    Owatonna MN

  • 2.  RE: Plugin Context - Initiating User ID

    Posted Feb 26, 2020 12:51 PM
    Hey Tim if a plugin causes another plugin to fire the pluginexecution depth would be greater than 1 and therefore populate the ParentContext as part of the runtime variables. This would make the original initiating user to be used at runtime. If this is not what you want to have happen you could check for execution depth and code accordingly. Hope this helps. Thanks!

    Doug Apicella
    Solution Architect
    Hitachi Solutions America, Ltd.

If you've found this thread useful, dive deeper into User Group community content by role