cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LauraBG
Frequent Visitor

Use a Button in Sharepoint Form in PowerApps to trigger a Power Automate Flow

I would like to trigger a Power Automate flow called "TestPowerAppsTrigger" from a button on a Sharepoint Form in PowerApps. Ideally, the Flow will create a copy of the current item and creates a new item. This flow works when called from the Sharepoint List. The Flow contains the following steps: Power Apps, Get Item, and Create Item. The Get Item step has GetItem_ID in the ID field. In the Button's OnSelect property in PowerApps, what do I put in the Run()? Any help would be greatly appreciated!

2 REPLIES 2
ChrisMendoza
Resolver III
Resolver III

@LauraBG- Run() should contain the 'Ask in Power Apps' variables needed to populate your dynamic content. Your 'Get Item' required fields are represented in a collection/gallery in Power Apps so something like 'ThisItem.ID' (more likely you'd have 'Set' a variable like 'varSelected.ID') would be passed to OnSelect > Run().

I don't have a sample exactly like what you require but hopefully you get the idea from below:

image.png

Thank you for your response. Much appreciated. I actually came up with a workaround and just created a button in PowerApps to do what is required, rather than triggering a Flow. But I will try out your solution when I can.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,081)