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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

'Apply_to_each_2' failed: he result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

(0) ShareShare
ReportReport
Posted on by 2

Hi everybody, 

 

I building a flow to send a reminder 15 days before the due date. I manage to set all the passage except for the last one: send an email (V2). 

 

I keep receiving this message: 'Apply_to_each_2' failed: he result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

 

Below the passage that create the issue. the "Focal point" column in share point is an email column. 

Teresa_DL_0-1686212878601.png

 

 

Grateful if anyone can help. 

 

Regards, 

T

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: 'Apply_to_each_2' failed: he result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

    Hi @Teresa_DL 

     

    Pls drag out send an email action out of 'Apply to each 2' which is not required. You can delete 'Apply to each 2' action after dragging out 'send an email' action. Another point is to put only 'Focal Point Email' in the 'To' parameter of 'Send an email' action. 

    The flow should look like this:

    ManishSolanki_0-1686213841927.png

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Teresa_DL Profile Picture
    2 on at
    Re: 'Apply_to_each_2' failed: he result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

    Dear ManishSolanki, 

     

    thank you so much for the quick response. Unfortunately it doesn't allow me to drag out send an email action out of 'Apply to each 2'.  Do you have any other suggestion? I tried to create again the flow but once I insert "Focal point email" but automatically create the step " Apply to each 2. 

     

    Thanks for the help, 

    T

  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on at
    Re: 'Apply_to_each_2' failed: he result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

    Hi @Teresa_DL 

     

    It looks like 'Focal Point' is multiuser filed that holds values of more than one user. In that case, add only the 'Focal Point Email' inside the 'To' parameter of 'Send an email' action to make your flow work. 

     

    If this resolves the problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard