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 / The execution of templ...
Power Automate
Unanswered

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_3')?['id']' is of type 'Integer'. The result must be a valid array.

(0) ShareShare
ReportReport
Posted on by

Hello, I am getting list of all job posting from a site.

 

For Each ID, I am trying to add that to SharePoint List.

 

But I am getting this error as  '@items('Apply_to_each_3')?['id']' is of type 'Integer'. The result must be a valid array.

 

How to resolve this ?

 

Categories:
I have the same question (0)
  • eliotcole Profile Picture
    4,363 Moderator on at

    I can't be immediately sure, but I suspect that there's no need to run embedded/double Apply to each loops, and possibly no need for them at all.

     

    You might be better served with an initial filter and/or select action, *then* perhaps an Apply to each loop to add each item.

     

    One request, if you don't mind, @Anonymous ... If possible, could you edit into your question a code sample of what the initial List Jobs call responds with? Just make sure to obfuscate/block out any sensitive data, for example replace URLs with something like startpage dot com. 👍

     

    If that data is something I can grab myself, just lemme know the connector and I'll pull some sample data.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hey, Thank you for responding though.

     

    I figured out the solution for this. Just had to add compose to check that into array.

     

    KarthikMahendra_1-1635434414553.png

     

     

     

     

  • v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues. Please consider Accept your answer as the solution to help the other members find it more quickly!

    Best Regards.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard