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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Context.depth

(0) ShareShare
ReportReport
Posted on by

Does anyone know what this means?

I have a plugin running giving me a context depth error.

I would need a layman terms explaining what this means. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Drew Poggemann Profile Picture
    4 on at

    Hi Tekwise,

    Explained in detail here...

    crmbusiness.wordpress.com/.../stopping-infinite-plugins-with-parameters-depth-and-parentcontext

    Hope this is what you were looking for.

    Thanks much,

  • Verified answer
    Alagunellaikumar Profile Picture
    6,212 on at

    It is nothing but, an infinite calling the method. For example

    You have a workflow(trigger by when status field change) in which an account is updated. You have account plugin and it is configured as "update" message post operation. In that plugin you did update the account status.

    In the above what happens, if the workflow trigger first workflow and then call plugin and then from plugin it call same workflow. So it continuously looping.

    To avoid this CRM by default they given how much looped it went, so you use context.depth >1 return in plugin code.

    If you find answer Please mark as verified.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans