You can use Microsoft Flow to create logic that performs one or more tasks when an event occurs in an app. For example, configure a button so that, when a user selects it, an item is created in a SharePoint list, an email or meeting request is sent, a file is added to the cloud, or all of these. You can configure any control in the app to start the flow, which continues to run even if you close PowerApps.

Prerequisites

  • Sign up for PowerApps, install it, open it, and then sign in by providing the same credentials that you used to sign up.

    Note: You can't add or edit a flow in PowerApps Studio for web.

  • Learn how to configure a control.

Create a flow

  1. Sign in to powerapps.com, and then select Flows in the left-hand navigation bar.

  2. On the My Flows page, select Create from blank.

    Option to create a flow without using a template

  3. In the box that says Search for more triggers, type or paste PowerApps, and then select the PowerApps option.

    Specify the trigger that initiates the flow

  4. Select New step, and then select Add an action.

    Option to add an action

  5. In the box that says Search for more actions, specify an action for your flow.

    For example:

    1. Type SharePoint in the box, and then select SharePoint - Create item in the list under that box.

      Option to create a SharePoint item

    2. If prompted, provide credentials to connect to SharePoint.

    3. In the SITE URL box, type or paste the URL of a SharePoint Online site that contains a list.

      Note: Specify the URL for the site itself, not including the list.

    4. In the LIST NAME box, select the list that you want to use.

    5. Click or tap the TITLE box, and then select Add dynamic content.

      Add Ask in PowerApps parameter to Title field

    6. In the list of parameters, select Ask in PowerApps.

      Add parameter

  6. Near the top of the screen, type or paste a name for your flow, and then select Create flow.

    Name and save your flow

Add a flow to an app

  1. In PowerApps Studio for Windows, select New in the File menu (near the left edge of the screen).

    Note: You can't add or edit a flow in PowerApps Studio for web.

  2. On the Blank app tile, select Phone layout.

  3. Add a Text input control, and name it RecordTitle.

  4. Add a Button control, and move it under RecordTitle.

  5. With the Button control selected, select Flows on the Action tab.

    Flows option on the Action tab

  6. In the pane that appears, select the flow that you created in the previous procedure.

    Add a flow from the customization pane

  7. In the formula bar, type or paste RecordTitle.Text) at the end of the formula that's been automatically added.

    OnSelect property that includes the flow

Test the flow

  1. Open Preview by pressing F5 (or by selecting the arrow near the upper-right corner).

    OnSelect property that includes the flow

  2. Type or paste text in RecordTitle, and then click the Button control.

    A SharePoint item is created in the list you specified with the text you specified as the title.