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, ...
Unanswered

Legal entity in Custom services

(0) ShareShare
ReportReport
Posted on by 1,006

Hi team, 

I have done with custom service. The custom service request for Sales order number and it return the response as I defined the data member like customer account, sales status etc.

 

I have tested in Postman tool , it's response correctly based on the request .

 

Here I have a question,  We have five legal entities like SCA, SCF, SCG, SCN, SCP 

I would like to run the custom service only for SCG for now.

 

Is i need to add changcompany keyword in service class?

 

Pls advise, Thanks

 

 

Categories:
  • Subra Profile Picture
    2,183 Super User 2026 Season 2 on at

    Hi @CU10121822-0 

    I hope by default it will look for the current user company. if you want to change or double check before executing your business logic as you mentioned you can use changecompany to change the same and make sure everything will work for the particular entity.

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