Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Flow only applying condition to first match instead of all matches on an excel sheet.

(0) ShareShare
ReportReport
Posted on by 18

Screen Shot 2022-10-20 at 1.51.44 PM.pngScreen Shot 2022-10-20 at 1.51.53 PM.pngHi there.  

 

I have a flow established to send an email two weeks before a given date on an excel document.   Its a compliance email.  There are multiple people who need to be sent compliance email per each date, however, the condition is only recognizing the first person listed for each date, instead of sending emails for all of the date matches.  How can I fix this?  Is there something like a repeat that can run until all of the matching dates are recognized?

 

Thanks a million in advance. 

  • masaro3 Profile Picture
    18 on at
    Re: Flow only applying condition to first match instead of all matches on an excel sheet.

    Hi! so this did seem to be the issue-- I didn't realize that there was a limit- so instead of adjusting the flow, I adjusted the document, and made sure all matching dates would be in the first 256. I will set up the parameter for the row to be deleted afterwards. However I am now running into a new issue.

     

    The flow is recognizing all of the corresponding information for all 24 rows that match the target date, however the flow won't stop running.  It's not a new run, but before the run ends, it is cycling the document (infinitely- I had to turn it off after 2 hours).  I want it to just cycle the document once, then stop.  Any ideas on next steps?

  • v-chengfen-msft Profile Picture
    on at
    Re: Flow only applying condition to first match instead of all matches on an excel sheet.

    Hi @masaro3 ,

    Could you please tell me:

    1. Have you set Filter Query in [List rows present in a table]?

    if not

    Please check :

            1.Does the output of [List rows present in a table] contain the second matching date?

                 (You can use Ctrl+F to query through the page to see if there is a matching date in the output of [List rows present in a table].)

            2.Does your Excel table have more than 256 rows?

    The Excel (Business) connector's "List rows present in table" action is currently limited to 256 rows in microsoft flow.

     

    I thought the second matching date might be after row 256.

     

    There is a way to around this limit:

    Solved: Excel (Business) - List rows present in a table: 2... - Power Platform Community (microsoft.com)

     

     

    Best Regards

    Cheng Feng

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on at
    Re: Flow only applying condition to first match instead of all matches on an excel sheet.

    I would use the Filter Array action, then Parse JSON, to after your List Rows action to get your related dates. Then you can Apply to Each from there.

    Like this: 

    Rhiassuring_1-1666303685911.png

     

    That should do it!

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow