cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carl__D
Helper I
Helper I

Get SharePoint View GUID of default Documents library

I am trying to Get the 'Views' GUID for the Documents library in SharePoint so I can add a field to the view.

 

Using '_api/Web/lists/getbytitle('@{variables('ListName')}')/Views' I can get the GUID in the output:

HTTP.png

GUID.png

 

But if I then parse the body and add the ID field to an 'Initialise Variable', it puts it into a for each loop and I can't use it. 

 

Is there a way to automate the retrieval of the list views GUID so I can add this to a provisioning flow? 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @Carl__D,

 

If you want to retrieve the first View Id from the response you can use this expression.

 

 

outputs('Send_an_HTTP_request_to_SharePoint')?['body/value']?[0]?['Id']

 

View solution in original post

1 REPLY 1
Expiscornovus
Dual Super User
Dual Super User

Hi @Carl__D,

 

If you want to retrieve the first View Id from the response you can use this expression.

 

 

outputs('Send_an_HTTP_request_to_SharePoint')?['body/value']?[0]?['Id']

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,495)