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 / Error: Action 'Apply_t...
Power Automate
Unanswered

Error: Action 'Apply_to_each_2' must be a parent 'foreach' scope of action 'Condition' to be referenced by 'repeatItems' or 'items' functions.'.'.

(0) ShareShare
ReportReport
Posted on by

Hello I am getting an error  and I would really appreciate some help on this. 

 

I'm trying to create a flow that compares a column in a SPlist with a 365 group and gives me the names that are missing from that list. 

This is what I get:

The inputs of template action 'Condition' at line '1 and column '3552' is invalid. Action 'Apply_to_each_2' must be a parent 'foreach' scope of action 'Condition' to be referenced by 'repeatItems' or 'items' functions.'.'.

 

 This is what I have 

 

Thanasis_0-1642783221551.png

Thanasis_1-1642783331973.png

Thanasis_2-1642783573659.png

Thanasis_4-1642783656541.png

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    MJain Profile Picture
    2,450 on at

    Hi @Thanasis ,

     

    Change Items('Apply_to_each_2') to Items('Apply_to_each_3')

     

    Thanks

  • Thanasis Profile Picture
    on at

    Thank you @ManishJain  that did help the think is when I run it though, 

     

    It gives me names that are in my SPlist, It should only give me the names that are missing from the SPlist ,

     

    Any thoughts ?

  • MJain Profile Picture
    2,450 on at

    What is coming in the output for MissingNames variable ?

  • Thanasis Profile Picture
    on at

    Hello @ManishJain thanks for your help  I was able to figure one part of it. I had to change this

    Thanasis_0-1642788958789.png

     

    The last part is, before changing the Pagination to 5000

    I was getting this 

    Thanasis_1-1642789038693.png

     

    Now I am getting this 

    Thanasis_2-1642789073050.png

    Now its reading correctly my SPlist column which so far is 335 , but it doesn't read the group right 

     

    There are around 470 people in that group but only reads 100 

     

    Any suggestions ?

     

  • Thanasis Profile Picture
    on at

    Sorry about that, it was user error, I only did the Pagination for the get items, I didn't do it for List group Members.

     

    All good now thank you 

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