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

Notifications

Announcements

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,241 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard