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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,874)