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 / Fetch environment vari...
Power Automate
Unanswered

Fetch environment variable values in power automate

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have 2 environment variables in my solution.

Is it possible to fetch both default value and current value(if exists) in one hit from CDS?

 

Thanks,

Ajay

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Ajay3 

     

    Could you please explain bit more about your requirement?

     

    Thanks

  • Ajay3 Profile Picture
    8 on at

    I have 2 environment variables in a solution as below,

    First environment variable : default value is "yes" and  current value is empty.

    Second environment variable: default value is "one" and current value is "two"

     

    I refereed this blog  "https://powerapps.microsoft.com/en-us/blog/environment-variables-available-in-preview/" ,here after first CDS call for entity "environment variables definition" they are looping through value and fetched current value by making other call for entity "environment variables value".

     

    My requirement is

    1)using power automate get above 2 environment variables at a time(with default and current value) means in one CDS call. Instead of calling 2 entities, call only one entity and fetch above values.   or

    2) 1st call to "environment variable definition" entity to get default values of both environment variables and store in an array.

        Then make 2nd call to "environment variable value" entity to get current value of both environment variables and store in               another array.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Ajay3 

     

    I did tried this in my environment now.

     

    image.png

     

    Above the current value is not overriding my default value. My understanding is if you have a current value that will override the default value.

     

    How about your case?

     

    Thanks

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard