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

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
    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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard