Power Automate Pane in Power Apps | Call flow from Power Apps | New Feature

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone reza here in this video i will show you a new feature in powerapps called the power automate pane this allows us to create the flow directly within the powerapps studio experience itself yes the experience of creating or calling a flow from powerapps is now seamless let's check it out in action [Music] let's take a first look at the new power automate panel feature for powerapps in make.powerapps.com i will create a blank app select a blank canvas app give my app a name and click create now in powerapps to call a flow we need an on demand call to power automate and typically we leverage a button control to go ahead and call our flow and to do that we head over to the action option in the menu select power automate this loads up all the flows that have the power apps based trigger so we can associate an existing flow with our app or right at the bottom we have the option to create a new flow when i select this it will take me to flow.microsoft.com here i can select the existing templates or begin with a simple powerapps button template and start designing my flow now this experience was a clunky experience which had many issues if the schema of the flow changed in terms of passing more input parameters our power apps would break many a times power apps would not reflect the changes in the schema that was made in flow and we had to come back to powerapps delete the flow reassociate and back and forth now with the new experience which we need to first enable by heading over to settings going to upcoming features and this one is called the power automate pane which is the new experience to integrate power automate inside of powerapps i will go ahead and turn this on and say okay now on the left hand side we have this new power automate pane option if i select this here it provides me the option to go ahead and create a new flow when i click on this button the power automate experience will now light up directly inside of powerapps i am presented with all the power apps based trigger templates plus i have the ability to create a flow from blank let's go ahead and click on create from blank this will launch the flow creation experience as well directly within powerapps and it will apply the powerapps based trigger for us so powerapps calling the flow next let's say in this example i would like to send a simple email from flow i will pick send an email who do i want to send the email to this i want to pass as a parameter from powerapps to flow i will switch to advanced mode and here is that ask in powerapps option under dynamic content if i select this it will create an input parameter that i will have to pass from powerapps to flow the subject i will hardcore to powerapps calling flow and the body of the email that also i will ask as an input parameter in powerapps i will go ahead and give my flow a name and click save now the moment i do that it will associate the new flow that i just created directly with my power app and that association is available right here in the in your app section in the power automate pane now if i head over to my button and i would like to call this flow all i have to do is start entering the name of that flow which is send email flow intellisense will guide me through send email flow dot run is the command to run the flow and those are the two parameters that i need to pass to the flow i've just gone ahead and added a few controls so user can enter who they want to send the email to and they can also give their message now when the send email button is clicked i'm calling the flow the first parameter is who do you want to send this to so i'll pick the two text box dot text and what's the body of the email that's the message text box dot text now if i was to preview this app and enter the email address and then click on the send email button this will go ahead and trigger that flow and send an email to the email address that i passed from power apps to flow and also include this message here is the email that i have received and here is the message that i plugged in inside powerapps now the beauty of this is even if i make a change to the flow directly from within apps power apps will be aware of the schema updates that are made in flow so the flow that's connected is right here if i was to click this and go to edit it will open the edit experience for that same flow once again right inside the context of powerapps this time let's say the subject of the email as well i will add that as an input parameter under dynamic content i will go to c-more and click on ask in powerapps so it creates another parameter now for the subject so i've made a schema update to the flow i am changing the input parameter now the moment you do something like that if you notice flow checker already warns you it says you may break your power apps triggered flow with the changes on the trigger which is true but now thanks to this new power automate panel if i was to save my flow and close the flow experience immediately if you observe on the left hand side it's refreshing the connection to power automate and because of that powerapps will directly notify me if there is any error and we can see that error right here it says there is a third parameter that it is expecting and that parameter is the subject i've gone ahead and added a control so the user can enter the subject as well so for send email the third parameter now would be the subject text box control dot text let's preview the app have entered the subject now if i click on send email this time the email that i receive has the subject that i have dynamically passed as a parameter as well if you want to add existing flows using this panel go to add flow and this will list out all the flows in your environment you also have the ability to create additional flows right here on the fly another thing that i want you to be aware of is if i was to create a new flow and let's say i pick create from blank the trigger action that you see here is the v1 trigger for power apps so if you need input parameters you need to have actions that you add in your flow for example here i've added a compose action if i want to ask for a parameter from powerapps i have to keep clicking this button asking powerapps there is a v2 version of the powerapps trigger if you want to use that just delete this trigger action go back to the powerapps connector and you will see the v2 trigger as well here the input parameters you can directly define through the add an input experience so if i have text information coming from powerapps i can pick the type as text give this a name and this will create a parameter info and once you have your flow built out if i simply click save it will associate this flow with my power app and if i want to call this new flow that i created once again start typing in the name of that flow and intellisense will give us the run method associated with that flow and here it's expecting a parameter of type text and the parameter name is info if you made changes to the schema of your flow directly in flow.microsoft.com and not through powerapps you can simply go and click the refresh button so it refreshes the schema of your flow and you also have the ability to remove this flow association from your app i'll show you a real world example of a scenario in which you would want to call a flow from powerapps here i have an inspection reporting app wherein the inspectors can go on site take pictures take notes related to the inspection put in feedback commands and more here i have an inspection that was completed i will head over to check details so i can see all the details of that inspection and right here on the top i have an icon for pdf now when i select that icon it will go ahead and call a flow that will in turn go ahead and generate a pdf report of this inspection form i will click on pdf it will go ahead and send me the inspection report here is the email that i receive and here is the attached inspection report pdf that has all the details of that inspection including the pictures that were captured now this is an example of a power app in which i connected the flow using the old experience which is basically going to action and power automate and associating your flow now a scenario in which i already have an existing association what if i want to make certain modifications to my flow specifically to the schema of my flow and take advantage of the latest power automate pane feature so once again i will head over to settings upcoming features and enable the pane we can see it on the left hand side here is my associated flow if i go to edit it will directly open my flow within the powerapps experience itself and this flow the only parameter that i'm passing is the id of the inspection and then i go and grab all the information related to that item my data source is sharepoint so get the item info get all the attachments which are the pictures then create html create a file in onedrive convert it to pdf and email it out now if you notice here the email that's going out is hard coded it's always going to reza let's make this dynamic i will go to dynamic content and for power apps i will pick ask and power apps so now the flow will expect an additional parameter for the to email property also the pdf document that's getting generated maybe i would like to put a message inside that pdf document itself so here's my html that generates that pdf i'll go ahead and make an update here i've just added an extra section in between the note that i want to enter i will head over once again to dynamic content and click ask in powerapps now that i have that in play i'll go ahead and save my flow schema updates have been made to this flow i will close my flow immediately power apps will get the latest updates of that flow notice my flow call from this icon on select is throwing an error that's because i now need to pass extra two parameters i've gone ahead and added a text control for note so here my parameter what's the note that's txt note dot text and who do you want to send the email to i'll pick user dot email that's the current logged in user who is running the app now if i preview the app i have plugged in a note i will click on pdf the flow has triggered it sent me an email with the pdf document attached and right here is the note that i plugged it now you also have the ability to send data back from power automate to power apps so for example here if i was to edit my flow right at the end here after i send the email i can go ahead and respond to my power app directly from flow and the response as well i can provide different types of outputs let's say i send text called success i'll pass the text yes i've made a change i'll click save i've made a schema update and now if i head back to my powerapp where i'm calling the flow if i put a dot right after this it will also give me the output parameters that i pass from flow to power apps so that's all about the new power automate pain experience let me know what you think about this new feature in the comments if you enjoyed this video then do like comment and subscribe to my youtube channel and thank you so much for watching
Info
Channel: Reza Dorrani
Views: 59,526
Rating: undefined out of 5
Keywords: power automate pane, flow pane, enable power automate pane, call flow from powerapps, call flow from powerapps button, call power automate from powerapps, powerapps call flow with parameter, powerapps trigger flow, powerapps trigger flow with parameters, powerapps flow parameters, powerapps v2, reza dorrani, power apps, powerapps, power automate, flow, powerapps trigger flow on button click, powerapps flow tutorial, respond to powerapps from flow, create flow from powerapps
Id: 1_F9msqF-f8
Channel Id: undefined
Length: 14min 6sec (846 seconds)
Published: Tue Feb 15 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.