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)

Trigger a Plugin on Business Process Flow switch

(0) ShareShare
ReportReport
Posted on by 1,004

Hi,

We have 2 business process flows on a custom entity and we want to trigger a plugin when a user switch the BPF. Does anyone know the plugin registration details for this scenario? e.g. which entity to register and what fields, etc.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Macoy Profile Picture
    275 on at

    Hi Sachith,

    Register the plugin step as

    Primary Entity : your custom entity

    Secondary entity: none

    Message: Update

    Filtering Attribute: processid

    Post Operation Synchronous

    Hope this helps.

    Regards,

    Macoy

  • SCV Profile Picture
    1,004 on at

    I can't see the processid field among attributes list. Also if I register the plugin on the custom entity update with all attributes selected the plugin does not get triggered. I have enabled tracing.

  • Suggested answer
    Macoy Profile Picture
    275 on at

    Hi,

    You can convert the plugin into a custom workflow activity and use it by creating an ootb workflow then trigger the workflow on field change of Process(proccessid). Or if you dont want to convert into custom workflow activity, you can create a field that will hold the value of the process then a workflow that triggers on create/update of processid field and set value to the field holder, use that field holder as filtering attribute for plugin step on Update message.

    Regards,

    Macoy

  • Community Member Profile Picture
    on at

    Hey Sachith,

    Did you manage your problem? How did you achieve to trigger some server side code on BP switch?

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
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans