cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ashok2
Post Patron
Post Patron

Loop all items for sharepoint library

I am trying to update all items in library for two sub-sites from flow , its working fine if i pass rest query as  item(2) and it update both library item(2)

but unable to get how loop all items of library ,

in createArray added two subsite like (https://test,https://test2)

Ashok2_1-1593014588147.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User II
Super User II

Hello @Ashok2 

Instead of using createArray function, you could create an array in this way:

2020-06-24 18_40_28-Window.png

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

3 REPLIES 3
fchopo
Super User II
Super User II

Hello @Ashok2 

Instead of using createArray function, you could create an array in this way:

2020-06-24 18_40_28-Window.png

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

getting error

 

ExpressionEvaluationFailed. The execution of template action 'For_each_2' failed: the result of the evaluation of 'foreach' expression '@outputs('Compose')' is of type 'String'. The result must be a valid array.

 

I want to update all items inside document library in  both sites,

It work only if i put 

"_api/web/lists/getbyTitle('Retired Documents')/items(2)" 

if i put _api/web/lists/getbyTitle('Retired Documents')/items it does not work, getting below error

  "message""The type SP.ListItemEntityCollection does not support HTTP PATCH method.\r\nclientRequestId: a24cbca2-9c93-4026-96d1-b15abd140327\r\nserviceRequestId: 60c65f9f-f06c-b000-e134-7b8af5671966",
 

 

It resolved it issue with SharePoint list column validation

 

Thank you 😊

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

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.

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