Integration help #102
Replies: 11 comments
-
I'm not quite sure what are you trying to do. Are you trying to implement on-behalf-of authentication where your web app will access Dataverse as if it were a currently logged in user? We didn't implement that yet (see #6 discussion) but middleware is all there for you to plug your code in. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @georged. Another problem I'm having is that I couldn't find where I can get the link to the dynamics crm instance, for example: https://[client's company].crm.dynamics.com. This instance, would it be the link of my company or the company of each of my clients? Thanks!! |
Beta Was this translation helpful? Give feedback.
-
I still don't understand what you're trying to do. Do the clients have their own instances, i.e. you're creating a tool that can be used against multiple CRM instances? Or do you want to authorize them in your Azure AD and grant access to your instance? As far as the instance URL is concerned, given that user is signed in, you can use discovery service. |
Beta Was this translation helpful? Give feedback.
-
Let me try to explain in steps, maybe it helps to understand: Note: I don't know if the access_token part would be that. |
Beta Was this translation helpful? Give feedback.
-
another thing is that I don't understand how this instance https://[...].crm.dynamics.com works? Every client of mine would have theirs?? |
Beta Was this translation helpful? Give feedback.
-
I'm still confused.
I don't know what your requirements are. Do you need an instance per client?! Does not sound like you do. And in any case, it sounds your clients wouldn't access this instance directly or be aware of it - why do they need to know? If you need this toolkit it means you're building PHP pages that talk to Dynamics. Do you? And your clients sign in on these pages using Azure AD? And you need to access Dynamics 365 from these pages and allow your clients to modify contact list of theirs? |
Beta Was this translation helpful? Give feedback.
-
Yes, I need to communicate with Dynamics 365 CRM, so I need each client's access_token so I can register/modify the client's contacts (I don't know if via access token would be the only way to do it). |
Beta Was this translation helpful? Give feedback.
-
To communicate with Dynamics 365 you don't need each client's access_token unless you're impersonating. What you need is server-to-server which we support. When your clients sign in, you get a claim that contains email address. Using that you can find client's record in CRM and then related contacts. |
Beta Was this translation helpful? Give feedback.
-
That's it, I'm going to do the communication on behalf of the customer, but I need the access_token (I'm not sure if it's the only way) to register/modify the contacts directly in the Dynamics 365 CRM account of each customer. I think we are now coming to an understanding and correct terms. I really appreciate your patience and the enormous help you are giving me. |
Beta Was this translation helpful? Give feedback.
-
@sotnaspina I'm afraid we still talking about different things There are two possible scenarios:
|
Beta Was this translation helpful? Give feedback.
-
It seems to me that it is scenario 2, each client of mine has a CRM and each one logs in through my app created in Azure Active Directory (so I can link the CRM client with the client in my system), with that I need to get the identification (from your CRM) to be able to register/modify the contacts in the CRM. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm having trouble integrating Dynamics 365 Sales and came here to ask for help.
I'll explain how the integration should work... I have an area in my system where each customer logs in via Microsoft Azure and the Access Token is returned, after that use the api (AlexaCRM/dynamics-webapi-toolkit) to register the contacts in each account (access token returned).
I've already done the entire process of creating the Application via Azure Active Directory for the customer to be able to login, I need to know if I can pass this Access Token received after Microsoft Azure login.
I don't know if my question was clear.
Beta Was this translation helpful? Give feedback.
All reactions