web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get SharePoint list na...
Power Automate
Answered

Get SharePoint list name from SharePoint trigger or action

(0) ShareShare
ReportReport
Posted on by 1,123

I would like to get my SharePoint list display name to use in Uri property of HTTP Request to SharePoint action. Hardcoding the name of the list is not a good solution as the change in list name can happen any time and my flow would fail at HTTP action. So I am looking for a way to get the display name of my list dynamically before my HTTP Request to SharePoint action. Using environment variables might not help if the list names are changed any time. Assuming my List display name is "Deviations: Forms Record", I don't see this display name embedded in any dynamic content from SharePoint trigger or other SharePoint actions. Please suggest any ways.

 

Thanks,

Ramesh Mukka

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @RameshMukka,

     

    As far as I am aware the environment variable of type list is using a guid. So, it should be able to handle a rename of the list. So, I would say a environment variable would be useful in this scenario.

     

    Below is an example to demonstrate.

     

    1. Environment variable of type data source/list

     

    environmentvariable_list.png

     

    2. Setup in flow

     

    deviations_before.png

     

    3. Renaming the list 

     

    rename_list.png

     

    4. Flow still runs happily after that change, because it is using the List GUID under the hood

     

    rename_list_after.png

  • rameshmukka Profile Picture
    1,123 on at

    @Expiscornovus Thank you for the response. But I am looking to use the list name dynamically in Uri property of HTTP Request to SharePoint action. I don't think I can use GUID here. Please confirm.

    RameshMukka_0-1699534616241.png

     

  • Verified answer
    Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @RameshMukka,

     

    Sure you can. Instead of the GetByTitle method there are other methods as well.

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest#retrieving-lists-and-list-properties-with-rest

     

    Try and use the following format instead:

     

     

    GET https://{site_url}/_api/web/lists(guid'{list_guid}')

     

    guid_envvariable.png

     

     

     

  • rameshmukka Profile Picture
    1,123 on at

    @Expiscornovus Thanks a lot. It is working for POST method as well.

     

    RameshMukka_0-1699597105647.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard