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 Apps / OData filter on Relati...
Power Apps
Answered

OData filter on Relationship property

(0) ShareShare
ReportReport
Posted on by 827

I'm in Power Automate, and trying to use the Dataverse List Rows action to return a list to me based on a column in a separate table.

 

For example, let's say I have a Schools Table and a Students table.  There are many schools, and each School can have multiple Students.

 

Now let's say that I want to see a list of all Students who go to school in New York City.  How would I construct the OData filter to show me all students where the School's City column value is equal to "New York"?

 

This seems pretty easy to do in Power Apps, but I haven't figured out how to do it in Power Automate yet.

 

Thanks for the help.

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hi @Jronash 

     

    You can use Advance find and download the fetchxml and use the same in Power Automate

     

    Navigate to make.powerapps.com

    Click Gear icon at the top

    Then select Advance settings

    Click Filter Symbol at the top then

    Select Look for as School

    Then Select rows Nd use filter condition as City equals Newyork 

    Once done click Download fetchxml then open it in NotePad copy and paste it in List Rows in Power Automate

     

    That's it ☺️

     

    Please mark as Answer if it is helpful and provide Kudos

     

     

    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

     

    Blog : https://microsoftcrmtechie.blogspot.com

  • Jronash Profile Picture
    827 on at

    Hi @rampprakash,

     

    Your method gives me a list of Schools in New York City, but what I'm looking for is a list of Students with relationships to Schools in New York City. 

  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Cool @Jronash 

     

    Then you can rewrite the Advance find like this

     

    1. In Advance Find Look For Students

    2. the in the Select Column Search for Related Entities and Select School

    3. Then Inside Related Entities Select City Equals New York

  • Jronash Profile Picture
    827 on at

    This is helpful, @rampprakash - I haven't solved my problem yet, but I think I may have an idea for why it's causing me trouble.

     

    In my scenario, the "School" relationship is not required for a "Student".  So there are some Students in the Student table who do not have a relationship with any school.  I think for this reason, the School entity does not show up on the list of Related Entities in Advanced Find.  I can see other related entities there (the ones that are required), but no School entity.

     

    Is there a way of using Advanced Find on a non-required related entity?

  • Verified answer
    Jronash Profile Picture
    827 on at

    After more research, I decided to try a different approach and created a calculated column in the Students table which refers to the City column in the Schools table.  So I can filter on that now.

     

    I'd still be interested in knowing if there's a way to do this without a calculated column, but this work-around is good enough for now.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard