Create a Power Automate button that uses all input types

Completed

In this unit, you create an instant flow that allows a user to report damage that was noticed on the company's property. The data is saved to a SharePoint list.

  1. Go to the SharePoint online site where you would like to store damage report information.

  2. On the upper left of the SharePoint site, select the + New drop-down menu and then select List.

  3. Select + Blank list.

  4. Give the list a name, such as Reported Property Damage. Select Create. you're automatically redirected to the new list. The list automatically has the Title field option available.

  5. Select Settings, which is available on the upper-right edge of the screen and looks like a gear icon. Hovering your mouse over the icon shows the Settings option. Next, select List settings, which takes you to the Reported property damage settings page. In the middle of the screen, you see the Columns section, which already has the Title option available.

  6. Select Title and change the column name from Title to Location. Scroll down and select OK, which is available on the lower right of the screen.

  7. Below the columns, select Create column.

  8. Enter Was anyone hurt? as the column name. Confirm Single line of text as the type of column. Scroll down and select OK on the lower right of the screen.

  9. Follow the previous two steps to add the Email, How many damaged items and Anyone you'd like to be CC'ed? columns.

  10. Select Create column. Add Date submitted as the column name and, this time, select Date and Time as the type of column. Scroll down and select OK on the lower right of the screen.

    The following screenshot shows an example of all the columns.

    Screenshot of all columns: Location, Was anyone hurt?, Email, How many damaged items, Date submitted, Modified, Created, Created By, and Modified By.

  11. Go to Power Automate and sign in.

  12. On the left vertical menu, select + Create.

  13. Select Instant Cloud Flow, name the flow Report Property Damage, and select the Manually trigger a flow option.

  14. Select Create to start building the instant flow.

  15. You're now in the Power Automate flow studio with the flow title and the Manually trigger a flow trigger already added.

  16. Select the Manually trigger a flow trigger and then select + Add an input.

  17. Select Text. Replace Input with Location.

  18. Select + Add an input and select Yes/No. Replace Yes/No with Was anyone hurt?

  19. Select + Add an input and select File. Replace File Content with Take a picture of the damage.

  20. Select + Add an input and select Email. Replace Email with Anyone you'd like to be Cc'd?

  21. Select + Add an input and select Number. Replace Number with How many damaged items?

  22. Select + Add an input and select Date. Replace Trigger date with Add today's date.

    Screenshot of inputs for the copilot generated flow.

  23. To add an action, select the plus (+) under the trigger. Search for and add Create item from SharePoint.

  24. Select your Create item action to open the properties panel on the left.

  25. For the Site Address property, select the drop-down arrow, which is available to the right and then select the site where your list is available. If the site doesn't appear, then select Enter custom value and paste the site URL.

  26. In the List Name field, select the Reported Property Damage list that you previously created. After you select the list, the select Show All next to Advanced parameters to see all the columns.

  27. In the Location field on the right, and then in the Dynamic Content section, select Location.

    Screenshot showing Create item with dynamic fields for Location, Was anyone hurt, Email, How many damaged items, and Date submitted.

  28. Add the Dynamic content for the other fields. After you complete the steps, the result should look like the following image.

    Screenshot showing the steps completed.

  29. Select the plus icon underneath the Create Item action to search and add the Add Attachment Sharepoint action to the flow.

    Tip

    Do not add an action via Copilot with a manual trigger at this time. Your manual inputs will be deleted and you will have to re add them.

  30. Select the Add attachment action to open the properties panel on the left.

  31. Select the Site Address and List.

    • Site Address: Select the drop-down arrow, which is to the right, and then select the site where your list is available. If the site doesn't appear, select Enter custom value and paste the site URL.
    • List Name: Select the Reported Property Damage list. After the list is selected, the column names will appear below it.
  32. Place your cursor in the Id field and select the lightning bolt on the right hand side to Open up Dynamic Content. Select ID.

  33. In the File name field, enter DamageReportImage.jpeg.

  34. In the File Content field, in the Dynamic Content section, select Take a picture of the damage contentBytes.

    Screenshot of Add attachment dialog with the File Content option clicked, showing dynamic content with Take a picture of the damage highlighted.

  35. Select Flow checker, which is available on the upper right of the screen. If you have zero errors and warnings, select the X and then select Save.

  36. You can now test the button by using your smartphone. Open the Power Automate app and select the Instant Flows option on the lower horizontal menu. You see the Report Property Damage option. Select this option.

  37. Populate all the items in the user input fields and then select Done.

  38. You can return to your list and confirm the new item, including the image that was added.

Now you successfully created the app using all six user inputs.