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 / 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,195 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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard