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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Get List ID of newly created list in same flow

(0) ShareShare
ReportReport
Posted on by

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!

I have the same question (0)
  • abm abm Profile Picture
    32,605 Most Valuable Professional on at
    Re: Get List ID of newly created list in same flow

    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
    on at
    Re: Get List ID of newly created list in same flow

    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
    32,605 Most Valuable Professional on at
    Re: Get List ID of newly created list in same flow

    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
    32,605 Most Valuable Professional on at
  • Community Power Platform Member Profile Picture
    on at
    Re: Get List ID of newly created list in same flow

    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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard