web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

Unable to select multiple company data in visual studio

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I am unable to select multiple company data in visual studio. Currently I am selecting single company data while setup an default company in solution explorer, but actually I have to select another company data as well in visual studio. Kindly assists.

Thanks,

Andavar

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Unable to select multiple company data in visual studio

    Hi Andavar,

    What do you mean by "select data in the visual studio"? Do you mean you run some runnable class and you want to select data in it or you check data in a table browser?

  • Andavar Profile Picture
    25 on at
    RE: Unable to select multiple company data in visual studio

    Hi Sergei,

    I have to select data from select statement in visual studio. please see below me select statement

    Select SalesPrice,salesqty from salesLine where salesLine.SalesId =='CNMF-XXXX'

    I have done company setup as CNMF in project properties so i can able select only related to CNMF company data. Actually I have to select another company DEMF as well . Can you please confirm whether we can able to select data different company information in same select statement.

    Kindly assists.

    Thanks,

    Andavar

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Unable to select multiple company data in visual studio

    Hi Andavar,

    Yes, it's possible using crossCompany keyword

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

  • Blue Wang Profile Picture
    on at
    RE: Unable to select multiple company data in visual studio

    Hi Andavar,

    Do you mean this property?

    341852.PNG

    In VS, you can change this Company property, from development, you can try to use changeCompany.

    Please read this: https://docs.microsoft.com/en-us/dynamicsax-2012/developer/change-company-design-pattern

    And , as mentioned CrossCompany,http://daxingwitheshant.blogspot.com/2019/04/difference-between-changecompany-and.html

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,177

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans