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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Use of Change company and cross company

(0) ShareShare
ReportReport
Posted on by 1,008

Hi team,

To continuing the post 

https://community.dynamics.com/forums/thread/details/?threadid=90f322bd-53a5-f111-b8de-3833c5e8605a

 

I have discuss there for Change company. But Martin suggested me for Cross company .

 

Here my question is,

When should I choose Change company and when should I choose Cross company?

 

What I understood,

 

Change company:  We think about it, when we focus on one company’s data only. 

 

Cross company = We think about it, when we focus on compare data across several legal entities.

 

Am I correct?

Pls advise, thanks 

 

 

Categories:
  • Suggested answer
    Martin Dráb Profile Picture
    240,669 Most Valuable Professional on at

    They are actually very different things.

     

    changeCompany changes the current company context in a part of code. Everything that executes inside runs in this changed context. It's like if a user temporary switched to another company.

     

    crossCompany keyword influences what a single select statement returns. You may use to return data regardless of a company or return data from a selected set of companies.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 378 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 350

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 345 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans