Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Advance find for related entity multiple records

Posted on by Microsoft Employee

Hi All,

My requirement is i want to get contact X that has both the Opportunities P1 and P2. my below Advance find didn't give any result while grouping on AND. But when i am grouping on OR its working fine. please let us know how i can achieve this.

6840.Capture.PNG

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Advance find for related entity multiple records

    Hi Kiran,

    Is your problem solved? Any other questions?

    Don't forget to mark verified answers, which will help other users with the same theme.  :)

    Best Regards,

    Lu Hao

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Advance find for related entity multiple records

    Hi Kiran,

    The relationship between the Opportunity and the Contact is N:1.

    0027.3.JPG

    So an Opportunity can only be associated with one Contact, it is not possible to associate two Contacts at the same time.

    in other words, Opportunities P1 is associated with one of Contact Q1 or Contact Q2, and Opportunities P2 can only be associated with another.

    In detail, there are only two cases:

    • Opportunities P1 is associated with Contact Q1, Opportunities P2 is associated with Contact Q2.

    OR

    • Opportunities P1 is associated with Contact Q2, Opportunities P2 is associated with Contact Q1.

    These two points cannot be met at the same time, can only meet one of them.

    So you could only use OR, not AND.

    In addition, as Goutam said, I recommend that you multi-select Opportunity in the Look Up Records instead of using AND or OR.

    Hope this helps.

    Best Regards,

    Lu Hao

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Advance find for related entity multiple records

    Hi ,

    You should use OR condition in that case instead of AND .In addition you can also select multiple opportunity in same condition like below , instead of multiple OR or AND operation.

    2019_2D00_02_2D00_18_5F00_23_2D00_00_2D00_02.png

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans