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 / 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

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:
I have the same question (0)
  • abm abm Profile Picture
    32,858 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
    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
    32,858 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
    32,858 Most Valuable Professional on at
  • Community Power Platform Member Profile Picture
    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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard