Trigger Microsoft Flow from PowerApps

How to trigger Microsoft Flow from PowerApps


Hello readers, I hope you guys enjoyed my previous blog. As I mentioned earlier, in this blog we will see how to create a PowerApps form for SharePoint list. But before going into that I thought we might have a glimpse of Microsoft Flows.  So today we will see how to trigger Microsoft Flow from PowerApps. If you want to really deep dive into the Microsoft Flow, please go through this link.

Basically, Microsoft Flow is a service that helps us to create automated workflows between our favorite apps and services to synchronize files, get notifications, collect data, and more.

Let’s begin our MS Flow journey, as from below screen shot you can see that I have created screen in PowerApps. This screen contains State text input, District text input and a “Create SP Item” button. Basically in this example we will create item in a SharePoint custom list on button click event. This item will be created with the help of MS Flow which will run on button click event.

Figure 1

We will follow below steps in order to integrate a MS Flow with PowerApps button click event.

Select the button in PowerApps screen and then click the Flows under Action.


Figure 2

Once you will click on the Flows tab than Data window will open. Click on create a new flow. In below picture you can see that Data window is showing an option to create a flow associated with Button as well as the list of existing MS Flows. But here we will create a new flow to create items in SharePoint list.

Figure 3

When you will click on the Create a new flow it will redirect you to a new window shown below.

Figure 4

Give a name to your flow in the input text box located at top left. Here I have named it as “Create SP Item” because this flow will create SP item.

Figure 5



Now click on the New step -> Add an action -> Create Item.

Figure 6

Now it’s time to configure our flow to create the item in SharePoint list. As soon as we will pass the Site Address and List Name values in the configuration form the columns will appear. In below screen shot you can see that my State and District value will come from PowerApps.

Figure 7

Now Save the Flow and go back to PowerApps development window you will able to see the new Flow under Data window. Now add the newly created flow with button On select Action. Use formula “CreateSPItem.Run(StateText,DistrictText)” as shown below.

Figure 8

Figure 9


Once you are done with the above steps then pass values in both the text boxes and click button to see the results.

Hope you all liked this article, please share it and subscribe our site for PowerApps and Flow stuffs. Please suggest us if you need anything else regarding PowerApps or MS Flow we will try to come up with that one also. See you all in my next blog on how to create a PowerApps form for SharePoint list.

Sharing is Caring

12 thoughts on “Trigger Microsoft Flow from PowerApps”

  1. Hi Rakesh,

    Thanks for your help so far. I created a flow in powerapps to upload files to sharepoint . The flow is giving an invalid arguements error . Not sure what is wrong. I have 4 text input fields , 3 drop downs cascading ones, 2 date picker fields .



  2. Hi Rakesh,
    Is it possible to create a collection onstart of the app in PowerApps using ms flows.

    DataSource : Sharepointt

  3. Hi Rakesh,
    Is it possible to create a collection onstart of the app in PowerApps using ms flows.

    DataSource : Sharepointt

    1. Hi Rani,
      It is possible to create a collection onstart of the app in powerapps. In fact we don’t need ms flow to do this. I hope you have added your data source as sharepoint using datasources.
      Once you created the data sources, add the collection formula on onstart. Refer below image.

  4. Innawan Widiyan Kumara

    Hi Rakesh,

    I want to update field in dynamics 365, that field is option set, the default value is blank, I want to update it with “DONE”. I have created textinput for id of opportunity that i want to change the the filed with “DONE”. I want updete with flow with on select button.
    Any ide for it ?

    1. Hi Innawan,
      Are you using canvas app? If yes, you can use updatecontext to update the default value on button click. No need to use flow.

  5. Is a premium Power Apps or Power Automate license required to trigger a flow from a Power Apps button? By premium I mean a per-app or per-user license?

  6. Hello Rakesh,
    I created a sharepoint list containing several columns (of type text and type choice).
    Then I created a form in powerapps. When I enter my values ​​in the button, it shows me an error.
    Here is what I enter:
    ButtonPowerApps.Run (DataCardValue1.Text; DataCardValue2.Selected; DataCardValue3.Text …
    Do you have a solution to my problem please?

Leave a Comment

Your email address will not be published.

Scroll to Top