Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | All TechTalks
I'm building a single page application integrates with Dynamics CRM 2015 On-premise for a sales team to take sales orders remotely using tablets.
I have a doubt with handling the OrganizationService connection through CRM SDK. The context is the following:
I have a front-end, built with Angular and WinJS, and the back-end is a bunch of CRUD operations in a Web API using C#. These operations execute different actions in the CRM Organization. Besides, each sales person has a unique CRM System User. I built the back-end to use OAuth authentication with bearer token. But now, I have doubts for handling the OrganizationService instance for each user. When a sales person log in into the app, I have to check if the user is valid and get an OrganizationService object to execute all the operations the user is going to do.
My question is, How can I handle the OrganizationService instances for each user?
I thought to do this through a connection pooling. Any other ideas?
Thanks in advance
You could use the built in WebAPI - this handles all of that for you? msdn.microsoft.com/.../mt593051.aspx
Well, I need to do some complex queries to retrieve different entities. I want to do that using LINQ. Besides, the new Web API was available from Dynamics CRM 2015 Update 1 (Online only). My client has Dynamics CRM 2015 On-premise (7.0.1)
Ok - I understand.
IF you use the Xrm.Client that handles connection pooling for you - see my post about this - develop1.net/.../MicrosoftXrmClient-Part-2.aspx
Hope this helps
How did you get on Hugo? Do you need any more help?
Thanks for asking. I decided for creating a manager of CRM connections, so I can create/get dynamically CRM Context linked to the token the user adquired in the authentication and authorization phase. Your previous post gave me the idea using Xrm.Client, so thanks for the approach
Could you please elaborate with a psuedo code if possible?
Thank you very much.
link is not working
Business Applications communities