cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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

Re: Loop all items for sharepoint library

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

Re: Loop all items for sharepoint library

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

Highlighted
Helper IV
Helper IV

Re: Loop all items for sharepoint library

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",
 

 

Highlighted
Helper IV
Helper IV

Re: Loop all items for sharepoint library

It resolved it issue with SharePoint list column validation

 

Thank you 😊

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,410)