Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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! 🙂 

 

 

 

 

  • Hema Profile Picture
    42 on at
    Update Environment Variable through Cloud Flow
     
    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
     
     
  • PranavPh Profile Picture
    12 on at
    Re: Update Environment Variable through Cloud Flow
    Hi, This worked perfectly. Thank you! 🙂
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Update Environment Variable through Cloud Flow

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow