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 / Filtering Dynamics 365...
Power Automate
Answered

Filtering Dynamics 365 related records

(0) ShareShare
ReportReport
Posted on by

Hi, I am trying to filter records by a lookup field (ie all entities with reference to the same lookup record) but get errors in flow.

 

I get all kinds of errors when trying to execute the query with different formats. The lookup has got the GUID of the linked entity as value, so I am trying like this

 

ppp_primaryentityid eq '<guid of primary entity'

ppp_primaryentityid eq guid'<guid of primary entity>'

ppp_primaryentityid eq (guid'<guid of primary entity>')

 

But all of them generates errors. I have tested with plain ODATA query with the GUID and entity name, and I am sure my data is correct.

 

Is there any standard way to find items across a 1:N relation like this is dynamics?

 

Categories:
I have the same question (0)
  • Verified answer
    LeeHarris Profile Picture
    1,026 on at

    Hi @DynoMatter 

    If you are using the Common Data Service connector you may have to adjust your filter so that the lookup field name is formatted as shown below.

     

    _ppp_primaryentityid_value eq '<guid of primary entity>'

     

    If this doesn't work please post some screenshots of your filter action and I will try to assist further.

     

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

    Hi @DynoMatter,

     

    Has your problem been solved by @LeeHarris 's advice?
    If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Best Regards,
    Community Support Team _ Lin Tu

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard