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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to handle multiple...
Power Automate
Answered

How to handle multiple variables

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 45+ variables I use in my flow.

 

Each variable is initialized and then set. Is there a way to reduce these into a single Initialize Variable action, and then 45 Set variable actions? or a better method using Parse JSON?

BordFronco_0-1681406434921.png any help is appreciated!

 

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at
  • grantjenkins Profile Picture
    11,063 Moderator on at

    If you can let us know what your flow is doing, then we might be able to restructure it so it's more streamlined. I've built some fairly complex flows before, but only ever have a few variables. It really depends on the purpose of the flow and what you're trying to achieve.

  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @BordFronco 

     

    Storing variables in json format would help insteading of initializing all variables like this 

     

    for example: you need to initialize three variables a, b,c with values "NN","NN2","NN3"

     

    Then you can create a json structure like below

     

     

    {"a":"NN1",
    "b":"NN2",
    "c":"NN3"
    }

     

    So whenever you need the value of any variable, you can use key to get the variable value.

     

    Adding some info

    Nived_Nambiar_0-1681623598409.png

     

     

    I hope this would help you

    Mark it as solution if it resolves your query 🙂

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard