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 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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,315)