Start a flow in a canvas app
You can use Microsoft Flow to create logic that performs one or more tasks when an event occurs in a canvas 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.
Create a flow
Sign in to powerapps.com, and then select Flows in the left navigation bar.
On the My Flows page, select Create from blank.
PowerApps is added as the default trigger.
Select New step, and then select Add an action.
In the box that says Search all services and actions, specify an action for your flow, as in this example:
Type SharePoint in the box, and then select SharePoint - Create item in the list under Actions.
If prompted, provide credentials to connect to SharePoint.
In the Site Address box, type or paste the URL of a SharePoint Online site that contains a list.
Specify the URL for the site not including the list.
In the List Name box, select the list that you want to use.
Click or tap the Title box, and then select Add dynamic content.
In the list of parameters, select Ask in PowerApps.
(optional) Specify one or more additional actions, such as sending approval mail to an address that you specify or creating a related entry in another data source.
Near the top of the screen, type or paste a name for your flow, and then select Create flow.
Add a flow to an app
In PowerApps, select New in the File menu.
On the Blank app tile, select Phone layout.
Add a Text input control, and name it RecordTitle.
Add a Button control, and move it under RecordTitle.
With the Button control selected, select Flows on the Action tab.
In the pane that appears, select the flow that you created in the previous procedure.
If the flow that you created isn't available, confirm whether PowerApps is set to the environment in which you created the flow.
In the formula bar, type or paste RecordTitle.Text) at the end of the formula that's been automatically added.
Test the flow
Open Preview by pressing F5 (or by selecting the arrow near the upper-right corner).
Type or paste text in RecordTitle, and then click or tap the Button control.
A SharePoint item is created in the list you specified with the text you specified as the title. If the list was open when the flow ran, you might need to refresh your browser window to show the changes.