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 environment vari...
Power Automate
Answered

Using environment variables to read an excel table from SharePoint

(0) ShareShare
ReportReport
Posted on by 11

I have been trying to create a simple flow that needs emails from an excel table in SharePoint. Also, I am trying to leverage environment variables to make all fields easy to modify if needed. I can get variables to work in the Location, File and Table fields of the Lost rows action from excel, but if I use a variable for the document library, I get the below error. Any suggestions would be greatly appreciated

 

JoseH_0-1697057847393.png

 

Categories:
I have the same question (1)
  • Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at

    @JoseH 

     

    Hi,

     

    Just to clarify, in the columns there that say Custom Value, What is the value you are putting in?

    The words 'Custom Value'?

     

    If you put in Environment variables themselves, it breaks?

     

     

  • JoseH Profile Picture
    11 on at

    It is showing a custom value label because I am using environment variables in all fields, Location: SharePoint site URL, File: File location in site, Table: table name in the excel file. The issue is when I try to add an environment variable for the document library, if I do that, then it breaks. If I select the value that auto-populates from the SharePoint site, and keep variables in the other 3 fields it works fine. But I want to use variables on all 3 fields.

  • Verified answer
    JoseH Profile Picture
    11 on at

    UPDATE! I created a flow to manually get the rows from the table and used the actual values instead of variables. I took the Unique ID from the flow for the document library and used that in a variable and now it works. 

     

    JoseH_0-1697548427362.png

     

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