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.
Create a Power Automate flow with trigger of type when an HTTP request is received.
The generated URL is where your JavaScript can send a request to.
You can also use the when a record is modified, this automatically detects changes like adding to an empty field, therefor you know what stage was filled in.
Many options, many ways to implement this.
Design
A table / entity is created for each Business Process Flow you create. Also, a record is created in a Business Process Flow table / entity every time a BPF instance is created.
Therefore, it is quite easy to add logic when a record changes in a Business process flow table.
What do to
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.