Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Select statement crosscompany

(0) ShareShare
ReportReport
Posted on by 621

Hi I am looking for a select statement that gives me back ALL items (inventTable) existing in Company A but not in B

  • CRSW Profile Picture
    621 on at
    RE: Select statement crosscompany

    Nope removed the job already because tried it in different ways

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Select statement crosscompany

    Can you share the code you have tried?

    Thanks,

    Girish S.

  • CRSW Profile Picture
    621 on at
    RE: Select statement crosscompany

    Thx, I tried it but no clue how to make it. It always shows me ALL items not the not existing ones

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Select statement crosscompany

    Hi,

    You can use container to save the list of company you want to data from and then pass that container to select statement.

    CustTable custTable;
    container conCompanies = ['CompanyA','CompanyB'];
    ;
    select crossCompany :conCompanies
        * from custTable;

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,558 Moderator on at
    RE: Select statement crosscompany

    Hi, In addition to Martin's suggestion, you can check this article on how to implement it

    learn.microsoft.com/.../cross-company-x-code-basics

  • Suggested answer
    Martin Dráb Profile Picture
    232,866 Most Valuable Professional on at
    RE: Select statement crosscompany

    Use a cross-company with two InventTable buffers joined with not-exists join.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans