Notifications
Announcements
I have a model driven app with business process flow (BPF) activated. For each stage of BPF, there is a Next Stage button at the bottom. I want to use the Next Stage button as a trigger to run a power automate flow in which after the Next Stage button of that particular stage is clicked, an email will be sent out. Can this be done by using JS? If yes, can anyone please share with me the JS code? Thanks.
Hello @Anonymous
Hope you are doing good.
Here is a Step by Step Video on how to trigger email on Change of BPF Stage Change: https://www.youtube.com/watch?v=MU9G72yOlew
Let me know if you are not expecting this.. i will provide another suggesstion.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLABlog : https://microsoftcrmtechie.blogspot.com
Hi @rampprakash
Thanks for the reply. However that is not what I'm looking for. I do not want to use Flow Step to trigger.
Instead I want to use the Next Stage button as a trigger. For example in the image below, after the user fills up the Estimated Days Needed in this Request In Progress stage and click on Next Stage, a power automate flow is initiated to send out an email.
Thanks for the Update.
If you don't want to use the Flow then you can go with OOB Process to send an email. This Link will help you step by step process.
https://dynamicsofdynamicscrm.com/2014/02/28/send-notification-email-on-business-process-stage-change-no-code-development/
Hi @rampprakash ,
Aside from that method, can I probably use something like an OnStageChange Event to trigger a power automate flow? This is because I already have a HTML email template set in the power automate Send an Email connector.
Thanks for your time.
@rampprakash
The link reference for the OnStageChange Event that I mentioned:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/events/onstagechange
Hi @Anonymous,
For every BPF, underlying table (Table name same as BPF name) will be created automatically to have visibility of the active stage for each record in an entity.
When you click on next stage button, process status or active stage for the record changes.
Create your flow for BPF entity and check when process status or active stage changes trigger the flow and do necessary actions.
If it answers your question. Kindly give kudo and accept it as solution.
Regards,
Prakash
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268