Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Saving attachments to sharepoint

(1) ShareShare
ReportReport
Posted on by 6
Hi I am new to PA and have been following a tutorial to save attachments to sharepoint from an outlook email.  I believe I have followed the advice in the tutorial but when I test it I get the following error.  Please can someone help me.
 
The execution of template action 'Apply_to_each_3' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_4')' is of type 'Object'. The result must be a valid array
 
Thanks
  • Suggested answer
    Michael E. Gernaey Profile Picture
    43,422 Super User 2025 Season 1 on at
    Saving attachments to sharepoint
    Again same feedback
     
    Please do not try to "explain" your issue, share your flow, share the inputs and outputs. The error is obvious, you sent an Object and not an array, but that is all we can see, there is no way for us to help you, with just this information, except to re-iterate, You cannot use an Object for the input to a For Each

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492