web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CorrelationID and Depth

(0) ShareShare
ReportReport
Posted on by 232

Hi Communities,

Please help that What is CorrelationID? where we need to use in Plugin?

What is the difference between in CorrelationID and Depth? Hope We can prevents Infinite loop using with Depth property. 

Regards

Dhan

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    CorelationID- Gets the GUID for tracking plug-in or custom workflow activity execution.

    Depth- Gets the current depth of execution in the call stack. Which means it tells you whether the plugin was triggered as a result of an action performed for the first time or it was triggered by another plugin's operation.

    Check msdn.microsoft.com/.../microsoft.xrm.sdk.ipluginexecutioncontext.aspx

    msdn.microsoft.com/.../microsoft.xrm.sdk.workflow.iworkflowcontext_properties.aspx

  • Verified answer
    shivaram Profile Picture
    3,315 on at

    Hi,

    Follow this thread for better idea of Correlation Id

    https://community.dynamics.com/crm/f/117/t/245213

    And coming to Depth - It is using for Executing your plugin. For example you gave depth as 1 then in Update operation, our plugin Execute only once. Generally we use Depth for preventing infinite loop errors. Limit of Depth is 8.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans