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 / Using a variable with ...
Power Automate
Answered

Using a variable with List rows from selected environment

(0) ShareShare
ReportReport
Posted on by 31
Hello,
I'm trying to use the List rows from selected environment action. It requires you to set the Environment. I want to be able to deploy a solution containing the desktop flow using this action to different environments so the environment changes so I was wanting to use a variable to store the environment. I tried getting the name from the admin section but get an error: 
{
  "StatusCode": "400",
  "Message": "",
  "Body": {
    "Message": "Invalid organization URL 'sandboxlearn.crm6.dynamics.com' provided.",

I got this from the https://admin.powerplatform.microsoft.com/environments... page
 
In Power Automate Desktop:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,855 Most Valuable Professional on at
     
    It looks like you forgot the https:// part in your variable value. Try the below in your ENV variable
     
    Below is an example for the accounts table.
     
     
  • novarse Profile Picture
    31 on at
    Thanks so much for your help. This accepted the environment which is great but now I'm stuck because it doesn't recognise the table.
    The error message is:
    Additional info:
    {
      "StatusCode": "404",
      "Message": "",
      "Body": {
        "error": {
          "code": "0x80060888",
          "message": "Resource not found for the segment 'vtac_table1'."
        }
      },

    I used the logical name for the table but I also tried the display name, plural name and schema name with similar results.
  • novarse Profile Picture
    31 on at
    I got it to work. I set the environment and table manually and ran the the flow. Opening the results object displayed the table name it used so I tried again with the environment variable and this table name and it worked. Thanks again!
  • novarse Profile Picture
    31 on at
    I'm trying to check the answer byExpiscornovus but it doesn't update this as the verified answer. only when I click my posts.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 464

#2
Haque Profile Picture

Haque 431

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard