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 :
Finance | Project Operations, Human Resources, ...
Unanswered

select crossCompany not working properly

(0) ShareShare
ReportReport
Posted on by 100
I have two customers that share the same party but in different legal entities

in each legal entity, i created one contact for this customer

So:
Customer1 partyNumber1 USMF
has 
contactPersonX partyNumberX USMF
 
And
Customer2 partyNumber1 USRT
has 
contactPersonY partyNumberY USRT

Why this while select below is returning both customers (1 and 2), even though only customer1 has contactPersonX?
i know "1234" is the same for both, but contactPersonId is not shared between them, so shouldn't it only enter the while loop once instead of twice?

  while select crosscompany custTable
      where custTable.Party == 1234
  join contactPerson where contactPerson.ContactPersonId == "contactPersonX"
{
}
Categories:
I have the same question (0)

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 412 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans