web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a Sharepoint Li...
Power Automate
Unanswered

Create a Sharepoint List and add columns

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I need to create an instant cloud flow on Power Automate that, once trigged, creates a new sharepoint list (called "NewList")and adds 3 columns: "Name", "ID" and "Role".

I followed a web tutorial and I created the list as you can see below, and it works.

BODY:
{ "AllowContentTypes": true, 
"BaseTemplate": 100, 
"ContentTypesEnabled": true, 
"Description": "My list description", 
"Title": "NewList" }

Then, I tried to add a new column ("Name") adding a new 'Send an HTTP request to Sharepoint' step (see below) and, once run the flow it returns with success but no column is actually added.

BODY:
{ '__metadata': 
{ 'type': 'SP.Field' }, 
'FieldTypeKind': 2, 
'Title':'Name' }

However, I don't know how to create more than one column in a single step (I think I have to change the 'body' but I'm not very familiar with JSON language).

I don't know if it's the right process, if you have any suggestions please comment below.

Can you point me out how to solve these issues?

Thank you in advance!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @matteoooooapps,

     

    Did you check the list settings if the name column is actually there? It might be a case of that the column is created in the list but simply not showing up in your default view.

     

    Can you btw share some screenshots of your Send an HTTP configuration? This way we know which methods you used and this could help with the troubleshooting.

  • eyau Profile Picture
    109 on at

    Hi,

     

    You're on the right track and it looks like you should have it. Click on the Show/Hide columns in MS Lists and see if your new column is hidden. If not you can check out this article and scroll down to the "Power Automate create Sharepoint list columns" section. This will go over how to create a list column in sharepoint via the HTTP Request and will probably go over what you already know. There is code on there to follow up, so it should be good to go.

     

    Hope this helps!

  • matteoooooapps Profile Picture
    8 on at

    You're right! The columns are there but they are hidden.

    Do you know a way to make them appear automatically?

  • matteoooooapps Profile Picture
    8 on at

    Thank you! I realized that the columns are there but they are hidden.

    Do you know a way to make them appear automatically?

    Immagine 2022-09-15 095737.pngImmagine 2022-09-15 09585asfadfaagaga6.png

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @matteoooooapps,

     

    Yes, this is possible via the SP.ViewFieldCollection.add Method

     

    Use a POST request with this syntax:

     

    Uri

    http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/addViewField

     

    Body

    {
    "strField": "TestCustomColumn"
    }

     

    Here is another example:

    https://powerusers.microsoft.com/t5/Building-Flows/Using-REST-API-to-create-a-field-in-a-Sharepoint-list-all/m-p/1048014/highlight/true#M136898

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard