web
You’re offline. This is a read only version of the page.
close
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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans