MS Power Apps
Text

Exercise 2: Build the Flow

Lesson 2 Module 1

Next we build the ‘Flow’ click here…

Select ‘My flows’ then ‘+ New’ and in the drop-down sub menu choose ‘Instant – from blank’ see image below.

Wizard splash window opens.

  1. Name your ‘Flow’ in the example the ‘Flow’ is named (PowerApps FileUploadToSPOTest).
  2. Select ‘From Flow Trigger.’
  3. Click ‘Create.’

See image below.

In the ‘Flow’ window click the three dots. In the drop-down sub-menu choose ‘Delete’ see image below.

When the manual trigger is deleted the following option appears.

  1. Type ‘Power’ you needn’t type ‘PowerApps.’
  2. Under the ‘Triggers’ option, click ‘PowerApps.’

See image below.

​Under the ‘PowerApp’ trigger click ‘+ New Step’ see image below.

Under ‘Actions’ click ‘Condition Control.’

A ‘Condition’ option opens see image below.

Under the ‘Condition’ type 1 and in the third box ‘Choose a value’ type 2. Clearly one is never going to equal to two. What this means is the ‘Yes’ condition will never be action-ed see image below.

Next under ‘If yes’ click the ‘Add an action’ and select ‘Office 365 Outlook’ see image below.

Under ‘Actions’ select ‘Send and email Office 365 Outlook.’

Email requirements are required. While an email will never be sent to be able to make this hack function this step remains a necessity for now. Microsoft have stated a native connector is in development which should remove this necessity.

  1. Type an email address (doesn’t have to be an active address)
    a. Subject type something for example (Mail will never be sent).
    b. Body description type something for example (Silly to fill this in etc.)
  2. Click ‘Show advanced options.’

Place your mouse cursor in the ‘Attachments Name -1 box.’ Then click ‘Ask in PowerApps.’

Note: ‘Sendanemail_AttachmentsContent’ and ‘Sendanemail_AttachmentsName.’ Obviously in the ‘Attachments Name – 1’ box you want to add ‘Sendanemail_AttachmentsName.’ In ‘Attachments Content – 1’ add ‘Sendanemail_AttachmentsContent.’

Don't see Options

Assuming you don’t see both ‘Sendanemail_AttachmentsName’ and ‘Sendanemail_AttachmentsContent’ add what ever option appears. Next click ‘Ask in Power Apps’ again. Both options should be listed. Simply remove the incorrect option and replace with the correct entry.

Next configure the ‘If No’ click ‘Add action.’

Click ‘SharePoint’ see image below.

Select under ‘Actions’ ‘Create a file’ see image below.

Note: Your SharePoint library destination doesn’t require anything special for this exercise. Name and defaults are acceptable see image below.

To add your SharePoint library you should see the image below options.

  1. Add your SharePoint ‘Site Address.’
  2. ‘Folder Path’ the SharePoint library you want to store the image.

Place your mouse cursor in ‘File name’ and select

          3. ‘Sendanemail_AttachmentsName’

          4. 'Sendanemail_AttachmentsContent’ see image below.

Your configuration should be the same as the image below.

Final Flow trigger. Click ‘Add an action’ in the search box type respond. Under the ‘Actions’ tab you should see ‘Respond to PowerApps’ select this option. 

Click ‘Add an output’ see image below.

Click ‘Text’ see image below.

Type in ‘Enter title’ (see image below) ‘FileUrl.’ In the ’enter a value to respond’ place your mouse cursor.

  1. Scroll down
  2. Select ‘Path’
  3. Click ‘Save’ see image below.

See completed Flow example image below.

Important

Best practice for a production Flow – is to name all your Flow ‘Steps’ to something more meaningful. If you or someone else return to the Flow at a later date; a descriptive title may help you or someone else to better understand the Flow, logic process.

Powered by Thrive Apprentice
Pen
>