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 Apps / Dynamically change the...
Power Apps
Unanswered

Dynamically change the data source SharePoint URL within a dataflow using an environment variable

(1) ShareShare
ReportReport
Posted on by 6
Hi

I’m fairly new to building Power Apps.

I’ve created a dev and prod environment and a pipeline within a dev solution to deploy my app to the prod environment. My app ingests an excel file from a folder on a SharePoint site and puts it into a Dataverse table. It uses power query within a Power App dataflow to retrieve the excel file from the SharePoint site. The folder it retrieves this excel file from changes depending on the environment.

Is it possible to dynamically change the data source SharePoint URL within the dataflow depending on the environment (dev or Prod)? I have an environment variable which is either ‘Test’ or ‘Live’ depending on the environment we are in:
sharepoint.com/sites/Test/Pending/data.xlsx
sharepoint.com/sites/Live/Pending/data.xlsx

I would like to use an environment variable in the URL to alter which folder it is looking at so when I deploy from dev to prod I don’t have to manually change the folder path to the files from ‘Test’ to ‘Live’.

sharepoint.com/sites/<Environment Variable>/Pending/data.xlsx

Is that possible, or is there another way of achieving this?
Categories:
I have the same question (0)
  • Giraldoj Profile Picture
    762 Super User 2025 Season 2 on at
    Hi there,
     
    unfortunately environment variables are not available in dataflow, the idea is already posted in the forums, you can vote for the idea here:
     
     
    Regards,
     
    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    LinkedIn: https://www.linkedin.com/in/jhonatan-giraldo-2b20561b9/

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard