Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I want to know how can i call custom services (REST and SOAP both) to pass the company id, so that it runs automatically the service method for that company.
Take a look at below link , it has examples of how to build and call custom service.
I have already looked at this link and sample. But i couldnt find, how to pass company information to REST and SOAP methods.
The easiest way is to make dataareaid as a parameter for you service and then do changecompany in the very begining of the method.
You can create a method called “getCompany” in your custom service class like this,
And you can call the method when you need the “companyID” in your service method.
You can refer to the following article：https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/walkthrough-exposing-an-x-class-as-a-data-contract?redirectedfrom=MSDN
Business Applications communities