Yeah, so the dynamics data action integration reaches out to the microsoft domain and the microsoft domain will send a response over. At this stage it looks like Microsoft is sending a bad response.
So you are going to have to work with your Microsoft admin and try to work this out. Just out of curiosity what kind of Auth are you using? According to this documentation we only accept basic, user defined, and user defined (Oauth).
Also when you say MFA are you using this to login to Genesys or Microsoft or Both? It shouldn't have any bearing on the web service data action as you will need to create an Oauth anyways for the data action to even run properly.
If you are saying that your Microsoft ONLY accepts MFA, I have never heard of this before and I would HIGHLY recommend opening a case with Customer Care and getting them involved as they can dig a lot deeper than we can in a public forum and escalate IF needed to the proper teams.
Cheers,
------------------------------
Cameron Tomlin
Online Community Manager/Moderator
Genesys - Employees
------------------------------
Original Message:
Sent: 07-29-2024 08:43
From: Shubham Dhareshwar
Subject: Microsoft Dynamics Data Action Error
Hi Cameron Tomlin
yes you are right no issue on the genesys side, as mentioned my account has a multifactor authentication and it is not possible to remove that multifactor from my account as my organization does not allow it.
------------------------------
Shubham Dhareshwar
Capgemini Technology Services SAS
Original Message:
Sent: 07-29-2024 08:34
From: Cameron Tomlin
Subject: Microsoft Dynamics Data Action Error
Hello Shubham,
Thanks for reaching out! I have looked into this a bit and it looks like the error is being returned from login.microsoft.com.
Digging deeper into the contextId it looks like it passes Genesys successfully. The problem is with auth'ing into the microsoft account.
My recommendation would be to start talking with your local Microsoft 365 admin and figure out why these creds are not passing correctly to auth into that Microsoft account.
------------------------------
Cameron Tomlin
Online Community Manager/Moderator
Genesys - Employees
Original Message:
Sent: 07-27-2024 08:29
From: Shubham Dhareshwar
Subject: Microsoft Dynamics Data Action Error
Hi Team,
I have created an Microsoft Dynamics 360 Integration and data action, and the profile I am using
for Dynamics Integration has a Multifactor Authentication and because of which I am getting error
while fetching the response from API. I have pasted the screenshot for the reference.
My organization does not allow to remove the MFA from the Account it is necessary to keep the MFA
so is the anyway to bypass this?
Error-
{
"message": "There was an issue validating the credentials.",
"code": "invalid.credentials",
"status": 400,
"entityName": "msDynamics",
"messageParams": {},
"contextId": "6723b041-3d88-4198-84f6-b5bb8d1a4731",
"details": [
{
"errorCode": "ACTION.AUTHENTICATION"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"error\":\"invalid_resource\",\"error_description\":\"AADSTS500011: The resource principal named https://orgd03f16ad.api.crm8.dynamics.com/api/data/v9.2/accounts was not found in the tenant named Capgemini Technology Services India Limited. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 2d96c0b9-ebec-4b41-8b47-ca0529cd4500 Correlation ID: 62ee677c-87f8-4e09-b209-1f184c5e89d0 Timestamp: 2024-07-27 12:06:35Z\",\"error_codes\":[500011],\"timestamp\":\"2024-07-27 12:06:35Z\",\"trace_id\":\"2d96c0b9-ebec-4b41-8b47-ca0529cd4500\",\"correlation_id\":\"62ee677c-87f8-4e09-b209-1f184c5e89d0\",\"error_uri\":\https://login.microsoftonline.com/error?code=500011\} [6723b041-3d88-4198-84f6-b5bb8d1a4731]",
"code": "INVALID_CREDENTIALS",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
#API/Integrations
------------------------------
Shubham Dhareshwar
Capgemini Technology Services SAS
------------------------------