Create a Location Column in SharePoint List Using Power Automate REST API

Last week, while working on a digital product called “Create SharePoint list and columns dynamically from an Excel file using Power Automate“, I needed to automatically create a Location column in a SharePoint list.

Normally, we can manually create a Location column from the SharePoint list settings. However, in automated provisioning solutions, especially when generating SharePoint lists and columns dynamically from Excel or JSON configurations, we may need to create the Location column programmatically using the REST API.

After some research and testing, I found that the modern SharePoint Location column can be created using the CreateFieldAsXml REST API endpoint.

In this tutorial, I will explain step by step how to create a Location column in SharePoint list using Power Automate REST API.

Create a Location Column in SharePoint List Using Power Automate REST API

Now, let’s see how to create a Location column in a SharePoint list using the Send an HTTP request to SharePoint action.

For this example, I have a SharePoint list named: Employee Information

Now, I want to create a Location column named: Office Location

Create a Location Column in SharePoint List Using Power Automate REST API

To create the Location column, follow the steps below:

  1. Go to Power Automate. Select Create and then choose Instant cloud flow.
  2. Click Create.
Create new location column in SharePoint list  using Power Automate

Next, add the SharePoint action:

  1. Add a Send an HTTP request to SharePoint action, provide the information below:
    • Site Address: Select your SharePoint site address.
    • Method: POST
    • Uri:
_api/web/lists/GetByTitle('Employee Information')/fields/createfieldasxml
  1. Headers:
{
  "Accept": "application/json;odata=verbose",
  "Content-Type": "application/json;odata=verbose;charset=utf-8"
}
  1. Body:
{
  "parameters": {
    "__metadata": {
      "type": "SP.XmlSchemaFieldCreationInformation"
    },
    "SchemaXml": "<Field DisplayName='Office Location' Format='Dropdown' IsModern='TRUE' Name='OfficeLocation' StaticName='OfficeLocation' Title='OfficeLocation' Type='Location'></Field>",
    "Options": 12
  }
}
Create a Location Column in SharePoint List Using Power Automate

Here, we are using the CreateFieldAsXml REST API endpoint to create the Location column.

  • In the SchemaXml, the important property is: Type=’Location’. This creates the modern SharePoint Location column.
  • The column display name is Office Location, and the internal name is OfficeLocation
  • The property: Format=’Dropdown’ is used to show the location field with the modern location picker experience.
  • The property: IsModern=’TRUE’ is used to create the modern Location column behavior in SharePoint Online.

After configuring the action, save the flow and click Test.

Then run the flow manually.

Once the flow runs successfully, go to the SP List Column Testing SharePoint list and open List Settings.

Under the Columns section, you can see the newly created Location column named:

Office Location

Create a Location Column in SharePoint List Using Power Automate REST API

Now users can add location-based information directly from the SharePoint list item form.

Conclusion

This is how we can create a Location column in a SharePoint Online list using Power Automate REST API.

In this tutorial, we used the Send an HTTP request to SharePoint action along with the CreateFieldAsXml REST API endpoint to dynamically create the Location column.

This approach is useful when you are creating SharePoint lists and columns dynamically from Excel, JSON, or any automated provisioning process.

You may also like:

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.

Live Webinar

SharePoint Permission Checker Agent using Microsoft Copilot Studio

Learn how to build a SharePoint Permission Checker Agent using Copilot Studio. Using this agent, you can check library-level and file-level permissions. Also, identify Users, SharePoint Groups, and Permission Levels.

📅 1st July 2026 – 10:00 AM EST | 7:30 PM IST

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