How to Rename SharePoint List Using Power Automate?

While working on a Create SharePoint Online List and Columns from Excel flow in Power Automate, I needed to create a SharePoint list with a specific internal name. Initially, I attempted to specify the InternalName while creating the list, but I encountered the following error:

The property 'InternalName' does not exist on type 'SP.List'.

After checking the SharePoint list properties, I found that there is no direct property for InternalName during list creation. This led me to another approach: first, create the SharePoint list with an internal name and then rename it to the desired display name.

In this tutorial, I will walk you through the steps to rename SharePoint list using Power Automate after it has been created.

Rename SharePoint List Using Power Automate

Suppose you want to create a SharePoint list using Power Automate with an internal name (ProjectTasksList) and a display name (Project Tasks). Since SharePoint does not allow you to set an Internal Name directly during creation, you first create the list with a structured name (ProjectTasksList) and then rename it to a user-friendly name (Project Tasks).

To do this, follow the below steps:

1. Open the Power Automate Home page and choose Instant cloud flow with trigger Manually trigger a flow. Click on +Add an Input to add three Text inputs (Site Address, List Display Name, and List Internal Name).

Power Automate Rename SharePoint list

2. Add the Send an HTTP request to SharePoint action to create the SharePoint list and provide the below parameters:

  • Site Address: Select the SharePoint Site Address from the dynamic content.
  • Method: Select POST as the method
  • URI: Provide the below URI:
_api/web/Lists/
  • Header: Use the below headers to make REST API calls to SharePoint:
{
  "content-type": "application/json;odata=verbose",
  "accept": "application/json;odata=verbose"
}
  • Body: Provide the below:
{ '__metadata': { 'type': 'SP.List' },
 'AllowContentTypes': true,
 'BaseTemplate': 100,
 'ContentTypesEnabled': true,
 'Description': 'My list description',
 'Title': '@{triggerBody()?['text_2']}'
 }

Here, provide the internal name in the title value.

How can I use Power Automate to rename Sharepoint list

3. Add another Send an HTTP request to SharePoint action to rename the SharePoint List and provide the below parameters:

  • Site Address: Select the SharePoint Site Address from the dynamic content.
  • Method: Select POST as the method
  • URI: Provide the below URI:
_api/web/lists/getByTitle('Old List Name')
  • Header: Use the below headers to make REST API calls to SharePoint:
{
  "Accept": "application/json;odata=verbose",
  "Content-Type": "application/json;odata=verbose",
  "IF-MATCH": "*",
  "X-HTTP-Method": "MERGE"
}
  • Body: Provide the below:
{
    "__metadata": {
        "type": "SP.List"
    },
    "Title": "@{triggerBody()?['text_1']}"
}

Here, provide the display name in the title value.

Run the Flow to Rename the SharePoint list Using Power Automate

Now, save the flow. -> Click Test (top-right corner) -> Select Manually and click Test again. -> Enter Site Address, List Display Name, and Internal Name in the input fields.

For Example:

  • Site Address: Provide your site Address.
  • List Display Name: Project Tasks
  • List Internal Name: ProjectTasksList
Run the Flow to Rename the SharePoint list Using Power Automate

Click Run flow and wait for execution. After the flow runs successfully, you can go to the SharePoint site and check the SharePoint List Internal Name and Display Name.

How to Rename SharePoint list Using Power Automate

Conclusion

In this tutorial, we learned how to create a SharePoint list with a specific internal name using Power Automate and then rename it to a user-friendly display name. Since SharePoint does not allow setting an internal name directly during list creation, we first created the list with a structured name and then used the Send an HTTP request to SharePoint action to update the title. This same method also works for renaming a SharePoint document library.

Moreover, you may like some more Power Apps tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App