Hello Friends,
Welcome back with another post on Power Automate. This post is in continuation to one of my earlier post(s) on different ways we can use HTTP request action (Send an HTTP request to SharePoint) in Power Automate to get different kind of information. I will be adding more and more options in this post from time to time. Below is the link of earlier post(s)-
- Power Automate: Useful HTTP Request Actions Part 1
- Power Automate: Useful HTTP Request Actions Part 2
- Power Automate: Useful HTTP Request Actions Part 3
- Create SharePoint List
- Create Column(s)
- Update Column(s) Display Name
- Read Excel And Insert Data
- Our process will divide into following steps-
- Create SharePoint List
- Create/Rename Columns In List
- Read Excel from Document Library
- Add Items from Excel into SharePoint list
- Create SharePoint List-
- First we will create custom SharePoint list named "SharePointListTemplateIDs" using Power Automate.
- Add an action "Send HTTP request to SharePoint".
- The Body template used is-
{ "__metadata":{ "type":"SP.List" }, "AllowContentTypes":true, "BaseTemplate":100, "Title":"SharePointListTemplateIDs", "Description":"This list contains the IDs of different types of lists/libraries we can create." }
- BaseTemplate is the Id that represents to a List type. 100 is for Custom list. Rest are as below-
- This will create list in SharePoint.
- Create/Rename Columns In List-
- We will create/rename below columns-
- Name: (We will not be creating this column. We will use Title Column and will rename it to Name)
- TemplateID: (Type: Number; Required: true)
- Description: (Type: Text (Multiline); Required: false)
- For this, we will follow below steps-
- Rename "Title" to "Name"
- Create "TemplateID"
- Rename "TemplateID" to "Template ID"
- Create "Description"
- Inputs are-
- Rename "Title" to "Name"
- Create "TemplateID"
- Rename "TemplateID" to "Template ID"
- Create "Description"
- Read Excel from Document Library-
- Now we will read the Excel file. We had uploaded the file in Documents library. This file contains the Name/TemplateID/Description columns as shown above in the post.
- Add Items from Excel into SharePoint List-
- That's all. Now save the flow and execute it.
- Here's the result-
- Please feel free to sent me your queries or any functionality that you want to achieve and currently not able to do so. I would be happy, if would be able to provide it's solution.
- Next Post Link-
- Coming soon...