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 / Reference to sharepoin...
Power Apps
Unanswered

Reference to sharepoint list

(0) ShareShare
ReportReport
Posted on by 36

I am modifying form for sharepoint list with Power apps. I want to define sharepoint list in my expression as the list that user is using in that moment. 

 

I do not want to use a specific value (list name) because I will use the same expression for different projects. The name of my sharepoint list is "list1". 

 

Currently I have: 

Sort('list1', ID, Descending)).ID

 

How can I define a reference value for Sharepoint list in use instead of using its name ('list1' in my case)?

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @li88li ,

    You cannot dynamically refer to elements such as list and field names dynamically in Power Apps, so you would need to hard-code it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • RusselThomas Profile Picture
    4,014 on at

    Hi @li88li ,

    I'm not aware of any way to currently variabilise DataSource objects or their properties within an app.  These assignments are absolute, unless you are using environment variables to define them across environments.

     

    When alternate sources are used across environments, then the general practice is to package your app in a solution and allow PowerApps to generate environment variables for your data sources.  These can be configured to connect to different sources across different environments.

    This is however more of an application lifecycle function, (i.e. moving apps from DEV to UAT to PROD and so forth) - so I'm not sure this is what you're looking for as you would have to move the app between environments to use this function, but feel free to take a look and explore...

    Announcing data source environment variables | Microsoft Power Apps

    Kind regards,

    RT

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard