Skip to main content

Notifications

Dynamics 365 general forum

Plug-in executes in form but not when using OrganizationService

Posted on by Microsoft Employee

Hi,

I have a registered plug-in which executes correctly when manually creating or updating an entity. However when creating the entity programmatically using OrganizationService.Create the plug-in doesn't run. What is the reason for this?

Kind regards,

Martijn

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Plug-in executes in form but not when using OrganizationService

    Assuming you have registered steps against the plugin for both the update and create messages it should be being called. What exactly does you plugin code look like as you may have something like a context.Depth check that is causing the plugin to exit before it performs what it needs to do?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans