Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Plugin not triggering

Posted on by

We have one of our plugins on Create of Account. 

During Manual account creation the plugin is triggering and throwing exception as expected.

During data import plugin is not triggering

  • Luis Arellano Profile Picture
    Luis Arellano 36 on at
    RE: Plugin not triggering during data import

    Like Bipin Kumar said, you can remove the Depth validation.

    Reason is, Depth can help to prevent loops in recursive calls but it is not only used for that, it lets you know where you are in the execution path.

    It works when you manually trigger it because you (the user)  triggers the "create" request so, the execution path of this action that was manually/directly created is Depth = 1.

    In your scenario, you (the user) starts an import job (Depth = 1), and then that process (import job) is sending the "create" request (Depth = 2).

    In a hypothetical scenario where you trigger a Workflow or Plug-in (Depth = 1), then that process starts an import Job (Depth = 2), then you will have a "create" message with Depth = 3.

    Hope this makes sense.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Plugin not triggering during data import

    Hi,

    If your plugin is only registered on create message then you don't need to check for depth property.

    Depth is used For update plugin

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans