SharePoint / Microsoft Flow – Maintain List details for no-code developers

This post is part of my User guide to using the SharePoint REST API in Microsoft Flow for no-code developers series.

I will look at the following operations on a list in this post.

  • Create a list
  • Get the list details.
  • Update lists details
  • Delete a list

Getting the list details is easy using the Send an HTTP request to SharePoint  action. Simply select the Site Address and supply the API uri then supply the body details and a SharePoint coder would be quite happy to create all of this within less than no time. I have found however that no-code developers struggle sometimes.

To make this easy for no-coders, I’m going to start by setting some variables.

  • ListName
  • ListDescription

Create a list

Now I can create a list using my 2 variables:

Looking at my flow run history, my list is created:

Get a list

Getting the list details of the list that we just created is now just as easy as shown below:

Now to get for example the title of the list (I agree why would you want to get the title of a list if you know the title of the list), use something like the following expression in an initialize varibale or compose action:

body(‘Send_an_HTTP_request_to_SharePoint’)?[‘d’]?[‘Title’]

Update a list

To update an existing list we need to do the similar things as when we create a list. In the headers use X-HTTP-Method and set it to MERGE.

 

Delete a list

To delete the list we just need to supply the API Uri. In the headers use X-HTTP-Method and set it to DELETE.

Share
Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

View Comments

Recent Posts

Introducing 8 AI Functions for Dataverse in Power Apps

Recently Microsoft added AI Functions to Dataverse that can be used in Power Apps. In…

2 days ago

Copy and paste Scope steps in the new Power Automate Designer

One of the outstanding issues with the new Power Automate Designer is Copy and Paste…

1 week ago

Receive the available storage within your SharePoint Online tenant

Within the SharePoint admin centre there is that little detailed overview, telling you the available…

1 month ago

Options for Documenting Your Power Apps: Comments, Code, and Controls

Within Power Apps there are various ways to document your app. In this post I'm…

1 month ago

2 ways to duplicate SharePoint Lists to support your Power Apps

Recently I've been asked quite a few times to duplicate SharePoint lists as part of…

1 month ago

Update a Hyperlink Column in SharePoint with Power Automate

Today, I was asked about how to create a lookup to a document or item…

1 month ago