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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter records in List...
Power Automate
Answered

Filter records in List Rows

(0) ShareShare
ReportReport
Posted on by 26

Hi everyone,

 

I have a flow, where I'm listing existing contacts and checking if their email is the same as in JSON. And in case it is, I'm updating these records with data from JSON.

But I have a problem creating a condition: if email in JSON isn't present in the system, I need to create a new Contact row.

I just can't come up with a clean idea how to do it and what I'm missing.

 

Right now I'm thinking to create another 'List Rows' and another 'Apply to each' for a condition where email from system and email from JSON are not equal. But I don't like this option, looks messy to me.

 

Like many times before that, I'm sure this can be done, but I need a push in the right direction 🙂

 

01.jpg

Categories:
I have the same question (0)
  • Verified answer
    vahrameev Profile Picture
    26 on at

    I'll answer this one myself 🙂

     

    needed to create this condition after 'List rows'

     

    02.jpg

    length(outputs('List_rows')?['body/value']) eq 0
     
    if 'yes' - create record
    if 'no' - update record

     

    that's it

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @vahrameev ,

     

    Glad to see you solved the problem.

    You could mark yourself as a solution to close the case.

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard