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

Setting a Variable in Power Automate from power Apps

Q: How would filename variable to be used in PowerAutomate from a powerapps variable. 

 

When i submit the form in powerapps, i want to capture the new list item ID, and then use that as a variable in power automate. Since my power automate is triggered by an action within the app, setting the variable will help me further build the flow logic later on if i can set the list item ID and then use to pull the data once the app saves it. 

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Tim88 ,

The LastSubmit property of a form will return a value from that form. Here is a good video from Shane Young @Shanescows on the subject.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

v-siky-msft
Community Support
Community Support

Hi @Tim88 

You can add Initialize variable action in the flow, set value: Ask in PowerApps, then you will be able to pass the value from PowerApps to Variable in flow.

If you want to pass the Items ID you just submitted, you can use FormName.LastSubmit.ID to get the ID, and put the Flow Run code to the OnSuccess property of Form, just like:'FlowName'.Run(FormName.LastSubmit.ID)

Sik

 

Snipaste_2020-02-20_16-16-20.png

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Tim88 ,

The LastSubmit property of a form will return a value from that form. Here is a good video from Shane Young @Shanescows on the subject.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

v-siky-msft
Community Support
Community Support

Hi @Tim88 

You can add Initialize variable action in the flow, set value: Ask in PowerApps, then you will be able to pass the value from PowerApps to Variable in flow.

If you want to pass the Items ID you just submitted, you can use FormName.LastSubmit.ID to get the ID, and put the Flow Run code to the OnSuccess property of Form, just like:'FlowName'.Run(FormName.LastSubmit.ID)

Sik

 

Snipaste_2020-02-20_16-16-20.png

 

Thanks for the replies guys, found Shanes video helpful. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,497)