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 new column in...
Power Automate
Unanswered

Create a new column in SharePoint list from Flow

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

So I have pre-existing lists that I would like to automate the process of creating a new column on. Can you automate this process with Microsoft Flow?

 

More Details:

I have about thirty lists that I would like to not have to manually go into and create two new columns, as mulitple sources will continue to create more lists overtime. The photo attached shows the two columns I create highlighted in red ink.Screenshot of ColumnsScreenshot of Columns

All help is appreciated!

 

Update: This link provides great examples for accomplishing this type of thing https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn600182(v=office.15)#field-resource

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Creating a column in a sharepoint list is not supported as a direct action in flow currently. What you can do is, to create the two columns in every list in your sharepoint site, you can invoke the rest api using the "send an http request" to sharepoint action and create those columns. Here is an example of how you can invoke the rest api to create a column:

    https://www.c-sharpcorner.com/article/how-to-create-column-in-a-list-using-rest-api-in-sharepoint/

    More on SharePoint rest api options: 

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints

     

    The flow configuration can be: Manual button trigger -> Get Lists from Sharepoint Action -> Apply to each on the List returned -> send an http request to sharepoint.

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at

    So, I can include non-JSON code into the body of a "Send Https request to Sharepoint" and populate the list with the two newly created columns (ex. pulling code from the link's example)? Or, are you saying I need to use the request to call an outside SharePoint Custom Add-in that is created similar to this: https://www.c-sharpcorner.com/article/how-to-create-column-in-a-list-using-rest-api-in-sharepoint/ to achieve the creation of columns?

     

    @yashag2255 

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous ,

     

    Yes need to include the JSON request. Please see below. Here I am creating a new text column called 'Country' with field length 25 under the list called 'aj'.

     

    sp2.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    You can refer to @abm 's suggestion for the send an HTTP request to sharepoint action. You can variabalise the column names / use the dynamic selector if you want to extract those from elsewhere.  

     

    You can get more details on the column types and sending http request to invoke the SharePoint REST API from the URL's that I have shared earlier. 

     

    More on column types etc. here: 

    https://support.office.com/en-gb/article/list-and-library-column-types-and-options-0d8ddb7b-7dc7-414d-a283-ee9dca891df7

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey all

     

     

    Some more information on the different FieldTypes could come in handy for this one I think 🙂

    https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj245640%28v%3doffice.15%29

     

    Kind regards

     

    Tom Slosse

  • maxwn5 Profile Picture
    2 on at

    Is there any way to make the column visible by default?  The HTTP request worked for me, but the new column is hidden.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at
  • Community Power Platform Member Profile Picture
    on at

    Hi,

     

    I am trying the same approach here but with newly added column field as choice type.

    Power_Automate_Choice.PNG

     

    I manage to get it run successfully with new "Phase" column added:

    Power_Automate_Phase.PNG

     

    However, it won't update or display in the list:

    Power_Automate_Phase2.PNG

     

    How do I get it it to display once added with power automate?

    Power_Automate_Phase3.PNG

  • Community Power Platform Member Profile Picture
    on at

    Hi @maxwn5, have you found a solution to display the hidden column by default?

    The link shared by @abm is no longer reachable.

    Thanks.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    You need to change the view manually.

     

    Thanks

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