web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to Each => Get E...
Power Automate
Unanswered

Apply to Each => Get E-mail Attachment: The execution of template action 'Aplicar_a_cada_uno_2' failed: the result of the evaluation of 'foreach' expression '@items('Aplicar_a_cada_uno')' is of type 'Object'. The result must be a valid array.

(0) ShareShare
ReportReport
Posted on by 11

I'm trying to do just a very simple flow as seen on tutorials triggering from my Power Virtual Agents 'standalone' connected/published to a Teams via 'only' Channel with Teams/MSOffice365/ADD simple auto-authentication (not created from nor within Teams PVA version) and just can execute this flow successfully:

 

Get last 10 e-mails from inbox (on messages with attachments) > Get e-mail attachments passing Message ID and Attachement's Content Id

 

LucasConekta_1-1686962798492.png

 

LucasConekta_0-1686962576754.png

 

 

What can be wrong?

Categories:
I have the same question (0)
  • rzaneti Profile Picture
    4,483 Super User 2026 Season 1 on at

    Hi @LucasConekta ,

     

    The error message suggests that you are trying to loop an object. If your are not trying to access data from a nested array from your 'Obtener correos eletronicos' action, you can remove your 'Aplicar a cada uno 2' loop and access the properties directly from the external loop output. 

     

    If you are not sure about how to implement these changes, please share an image from the body of the output of your 'Obtener correos eletronicos' action, removing any sensitive data. You can access the output by clicking in "Show raw outputs" or "Click here to donwload".

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard