Skip to main content

Notifications

Power Automate - Using Connectors
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

 

  • Verified answer
    JoseH Profile Picture
    JoseH 11 on at
    Re: Using environment variables to read an excel table from SharePoint

    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

     

  • JoseH Profile Picture
    JoseH 11 on at
    Re: Using environment variables to read an excel table from SharePoint

    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.

  • FLMike Profile Picture
    FLMike 27,710 on at
    Re: Using environment variables to read an excel table from SharePoint

    @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?

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics