Notifications
Announcements
No record found.
Hi.
Im creating a some custom services to support a webshop integration. When calling the Custom services how do you specify which Company (Legal Entity), to get data from ?
*This post is locked for comments
It's unfortunate, but changing the company for a specific request isn't supported; it's always taken from the user.
If you need this ability, you have to implement it by yourself (by adding DataAreaId to the data contract and using it in code, e.g. in changeCompany()).
We are not using a user to Authenticate, but Appkey and Secret, the appkey is the associated with a user under System Administration /
Azure Active Directory applications, but i guess that changes nothing.
So we would have to create 3 App-Keys, in Azure, and 3 Users, 1 for each app key, to be able to switching between 3 Legal Entities when calling custom services ?
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2