web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting Multiple Varia...
Power Apps
Answered

Setting Multiple Variables Coming From a Flow

(0) ShareShare
ReportReport
Posted on by 29

I'm using Power Automate to retrieve attributes from a JSON payload. I'm able to parse the payload into 5 variables:

Snag_5904f0.png

 

I'm also able to set the variables and trigger the flow from a button in PowerApps:

Snag_5027f5.png

 

I'm then using a formula to populate 5 textboxes with each variable:

Snag_544d2d.png

 

This all works fine, and each variable populates in the correct textbox. The problem is it seems like I'm running the flow each time I'm setting a variable, which seems inefficient to me. Is there a way to set all the variables at once and then run the flow just once? I've tried with UpdateContext, using Set multiple times without calling the Flow, and neither seems to work.

Categories:
I have the same question (0)
  • Verified answer
    ilton Profile Picture
    194 on at

     Hi @cm13

    try

    setting the response in an object

    Set(fullResponse, SomeFlow.Run())

    Set(SomeAttribute, fullresponse.attribute1)

    and so on

     

  • Max44 Profile Picture
    223 on at

    The example flow:

    Finds all user records whose City is "San Francisco" and populates employeesInSF with those records’ Email.
    Loops through the record collection variable so that it can look at each individual user record. The loop copies the values of each item in employeesInSF to loopVariable.
    For each iteration, assigns the user's Email to a collection variable that has a Data Type of Text.
    When the loop ends, the flow sends an email to the users whose emails are now stored in emails_employeesInSF.

  • ilton Profile Picture
    194 on at

    Where you able to solve the issue?

  • cm13 Profile Picture
    29 on at

    Thanks, that solved it!

  • e_leonr Profile Picture
    2 on at

    Estimados, 

     

    estoy tratando de realizar un flujo de aprobaciones con las siguientes variables, cada vez que se genera un formulario lleva los datos a una lista en sharepoint, cuando se genera un elemento en sharepoint la idea que genere un flujo de aprobacion del formulario. 

     

    las aprobaciones deben discriminar por usuario aprobador, ya que cada centro de costo tiene su aprobador, y asi continuar el flujo como se aprecia en el excel

    e_leonr_0-1691100525996.png

    Favor su apoyo

    Saludos, 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard