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 / Update Environment Var...
Power Automate
Answered

Update Environment Variable through Cloud Flow

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

 

I have created a solution and set an environment variable called ErrorDate. 

 

PranavPh_0-1688380744680.png

 

I'm reading a text file in the flow and if the date in text file is greater than the one in environment variable, I want to update the value in environment variable(with the one from the file) and save it. So when the flow runs next time, it uses the last saved date.  value. How can I do that? 

 

In the flow I set the variable like this and then updated it based on the logic 

PranavPh_1-1688380910335.png

PranavPh_2-1688380941166.png

 

But it doesn't seem to update/point to the actual environment variable value? Like in the Set Variable I'm writing the variable name(but its just creating a variable in flow with same name). Somehow I want to point it to the environment variable and update that one but not sure how to do it? 

 

Can someone help? Thanks! 🙂 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @PranavPh ,

     

    The action 'set variable' just set the value of the temp variable in flow. 

    Actually, the values of environment variables are saved in database Dataverse.

    vxiaochenmsft_0-1688434573236.png

    vxiaochenmsft_1-1688434636527.png

    vxiaochenmsft_2-1688434770960.png

    vxiaochenmsft_3-1688434843160.png

    vxiaochenmsft_4-1688434909751.png

     

    Best Regards,

    Wearsky

  • PranavPh Profile Picture
    12 on at
    Hi, This worked perfectly. Thank you! 🙂
  • Hema Profile Picture
    44 on at
     
    I too have the same scenario, i needs to update the environment variable.
     
    In the below verified answer, i am not able to see the screenshots its not loading can you help me with the steps or screenshots to handle the scenario.
     
     
    It would be very helpful.
     
     
    Thanks
    HJ
     
     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard