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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get List ID of newly c...
Power Automate
Unanswered

Get List ID of newly created list in same flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,  I am using flow to generate a share point list, then adding columns to it.  I need to add the newly created columns to the default view and hit a road block.

 

I was thinking of using this endpoint but i need to get the list and view ID as a variable and pass it onto this.

 

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

 

Any help is much appreciated!

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Get Lists action step will return all the lists. Once you retrieved the list records then filter by name to get the list id you want.

     

    image.png

     

    To get the view id use the Get List Views and apply the similar method which I described above.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for this! i was able to get the variables i needed, however i hit another road block

     

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

     

    is not working as expected.  Would you happen to know how to work with views via REST?

     

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    What error are you getting now?

     

    Please see this post

     

    https://sharepoint.stackexchange.com/questions/272479/how-to-update-sp-list-default-view-using-rest-api

     

     

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the link. I don’t get any errors. I’m the flow is successful it just doesn’t do anything with the views. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard