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
Super User
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
Super User
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

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,637)