Skip to main content

How to use SharePoint REST APIs with Power Automate

Hi everyone! In this post I would like to chat a little about using Power Automate to evoke the very useful and powerful SharePoint REST API. Let’s get started!

What is Power Automate?

Power Automate is the online workflow service included in the Power Platform suite of services that allows users to automate actions across over 500 apps and services in the cloud, via the Representational State Transfer (REST) service, or on-premise, via an on-premises gateway. SharePoint Online is an example of a service that uses REST. For more information about Power Automate, click here

The SharePoint REST API service

SharePoint Online uses REST Application Programming Interfaces (REST APIs) to allow professional and citizen developers to perform Create, Read, Update, and Delete (CRUD) operations on SharePoint data. Power Automate uses HTTP requests to leverage the SharePoint REST API.

The following table provides an overview of some of the HTTP REST requests.

An HTTP REST request also includes a REST URL comprising an appropriate entry point, specific resources, and parameters for endpoints that correspond to methods in the client object model.

In the following example, the entry point is the SharePoint site URL with the ‘_api’ postfix that identifies the communication channel. The resource in this example is a list and the method is ‘getbytitle’ which as the name implies gets the list with the name parameter enclosed in the parentheses, ‘TestList’, in this example.

For more details on the SharePoint REST service, you can check this out

How to perform CRUD operations in SharePoint using REST APIs from Power Automate

Firstly, Power Automate has a ‘Send an HTTP request to SharePoint’ action, supporting various HTTP request types as shown below. In this blog however, we will focus on using it to add an item to a List using the ‘POST’ method.

Let’s take a closer look at this action. In the screenshot below, the ‘Site Address’ is a mandatory field that contains the address of the SharePoint site which contains the resource you would like to edit. In this case, the site is called ‘Power Automate Test Site’

The POST ‘Method’ communicates to the SP site it would like to create a resource, a list in this instance.

The Uniform Resource Locator or ‘Uri’ specifies the list that needs to be updated. In this example, it is the SP list called ‘HTTP’.

The ‘Body’ contains the metadata that will be added to the List, in this example, it will be the value ‘Test’ in the Title column.

The result will look like the screenshot below.

There you have it!! That’s all you need to add an item to a SharePoint List using the REST API. The approach would be similar for the other request types. However, if you would like to learn more about using the SharePoint REST APIs with Power Automate you can click here!

Let us build something amazing together
Connect with us.

With over 20 years of experience working with Microsoft Technologies, Imaginet can help you choose the right Microsoft 365 solution to adopt an effective hybrid workplace model and improve employee engagement. Contact us to get your free virtual consultation.

Let's Talk

Like what you read?

Check out our recent articles.

March 30, 2023 in Managed Services

Reporting Suspecious Activity Feature – Azure Active Directory

Azure Active Directory's Reporting Suspicious Activity feature helps you detect and respond to suspicious activities in your organization. Get real-time alerts, investigate suspicious activities, and take action quickly with our advanced security tools. Protect your data and stay secure with Azure Active
Read More
March 16, 2023 in Application Development

Choosing the right technology stack

Choosing the right technology stack is crucial to the success of any software development project. It involves selecting the right set of tools and frameworks that can meet the project's requirements and help deliver high-quality results within the given time and budget. At Imaginet, we understand the challenges and complexities that come with selecting the right technology stack, and we are committed to helping our clients through the process. Here are five tips to consider…
Read More
March 9, 2023 in Power Platform, Productivity

The Ultimate Guide to Creating High-Performance Power Automate Workflows

Learn how to create powerful Power Automate workflows that are efficient, effective, and designed for success. This ultimate guide covers everything from setting up your workflow to advanced customization options and best practices. Get started on your journey today!
Read More
March 1, 2023 in Application Development

Optimize Learning & Efficiency of App Development with ChatGPT

The article discusses how artificial intelligence (AI), specifically the AI-powered language model ChatGPT, can be integrated into software development processes. ChatGPT can be utilized for tasks such as providing explanations for coding concepts, giving recommendations for improving code efficiency, simplifying complex code, troubleshooting and debugging code, and generating examples for practice exercises.
Read More
Stephan Alexander

Using my 15 years of experience in IT and Microsoft collaboration to help businesses reach their goals. Proudly part of Imaginet, where I can leverage my knowledge to create powerful solutions.

Let‘s Talk.

Let's talk!