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
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?
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.
Yes, it's possible using crossCompany keyword
docs.microsoft.com/.../cross-company-x-code-basics
Do you mean this property?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,177
André Arnaud de Cal... 860 Super User 2025 Season 2
Sohaib Cheema 593 User Group Leader