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 / Filter records in List...
Power Automate
Unanswered

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
    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

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