Skip to main content

Notifications

Announcements

No record found.

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

  • Community Member Profile Picture
    on at
    RE: Trigger a Plugin on Business Process Flow switch

    Hey Sachith,

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

  • Suggested answer
    Macoy Profile Picture
    275 on at
    RE: Trigger a Plugin on Business Process Flow switch

    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

  • SCV Profile Picture
    1,004 on at
    RE: Trigger a Plugin on Business Process Flow switch

    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
    RE: Trigger a Plugin on Business Process Flow switch

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,281 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,019 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans