Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6jTjG1o1JiqfuoFiYComKW
Power Automate - Building Flows
Unanswered

Create a Sharepoint List and add columns

Like (0) ShareShare
ReportReport
Posted on 14 Sep 2022 16:26:38 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!

  • Expiscornovus Profile Picture
    31,709 Most Valuable Professional on 15 Sep 2022 at 08:29:08
    Re: Create a Sharepoint List and add columns

    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

     

  • matteoooooapps Profile Picture
    8 on 15 Sep 2022 at 07:56:01
    Re: Create a Sharepoint List and add columns

    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

  • matteoooooapps Profile Picture
    8 on 15 Sep 2022 at 07:55:02
    Re: Create a Sharepoint List and add columns

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

    Do you know a way to make them appear automatically?

  • eyau Profile Picture
    107 on 14 Sep 2022 at 21:44:02
    Re: Create a Sharepoint List and add columns

    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!

  • Expiscornovus Profile Picture
    31,709 Most Valuable Professional on 14 Sep 2022 at 21:35:31
    Re: Create a Sharepoint List and add columns

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 148 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 139

Overall leaderboard