Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CorrelationID and Depth

Posted on by 230

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

  • Verified answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: CorrelationID and Depth

    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.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CorrelationID and Depth

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans