cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carl__D
Frequent Visitor

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

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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (9,297)