Did you know you can call Microsoft Power Automate Flows directly from Dynamics 365 Power Apps Business Process Flows? In this post, we will look at how to do just that. It’s a useful feature if you want your users to be guided through knowing when to run a flow in a particular business scenario.
If you prefer to watch the video on this, check out the video on my YouTube channel:
First, let’s create a new Business Process Flow. We can do this by signing into https://flow.microsoft.com and selecting the environment:
Or the old way by selecting Settings->Processes. We will open the Lead to Opportunity Sales Process as an example:
Opening it, we see Flow Step (Preview) as an option under Components:
Let’s look at Business Process Flow. We see it goes through the Stages of Qualify, Develop, Propose, Close in the Lead and Opportunity entities:
If we were to create a new Lead, we see we are guided through the same process:
And the Qualify (Lead) has 7 steps:
Which we can see on the Lead form:
Let’s add a flow step. Under components, drag the Flow Step into the Qualify stage:
Now let’s add the details of the Flow we will call. We will give the step a name, and select the flow. Let’s first click on Look Up More Records:
We get a list of Flows in our environment:
So where does this come from? Let’s log into https://flow.microsoft.com and go to the same org. Our flows are in various Solutions:
Let’s choose the flow called Button->List Records, which looks like below. It gets a list of accounts and emails them to a user:
Let’s use this as the Flows in the Business Process Flow, and click Apply:
We can Validate and Update our Business Process Flow once complete:
Now when we create a new Lead, we see in the Qualify stage there is our new Flow, with a button to Run Flow:
Enter in Qualify information and Save the Lead. We see the Run Flow button has become Active:
Clicking on it, we see the Flow pop-up appear. Click Run flow:
We see:
Clicking on the link takes us to the Flow runs page:
Where we see a Succeeded Flow:
And logging into our email we get the email results of the flow:
Nice feature, it’s still in Preview but many cool use cases for it.
I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.
IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.
THANK YOU, AND LET'S KEEP LEARNING TOGETHER.
CARL
Hello Carl,
I found your power apps articles very useful.
In model driven app, I need implement one requirement. If that user has notifications any then system should show in pop up. Once user read then update db and then only allow to navigate to other url. How to achieve this functionality?
Hi Carl,
how did you make run flow button grey? I would like to do this functionality and you somehow did it 🙂
Well, they shouldn’t should pay greater than 7 p.c of your earnings
for that.
… [Trackback]
[…] Read More on to that Topic: carldesouza.com/how-to-call-microsoft-power-automate-flows-from-a-business-process-flow/ […]
… [Trackback]
[…] Read More to that Topic: carldesouza.com/how-to-call-microsoft-power-automate-flows-from-a-business-process-flow/ […]
… [Trackback]
[…] Read More here to that Topic: carldesouza.com/how-to-call-microsoft-power-automate-flows-from-a-business-process-flow/ […]