- Joined
- Jul 3, 2021
- Messages
- 218
- Reaction score
- 25
You need OAuth2, in this case the access token.Can you please help me with how to do Authentication to call Dynamic 365 CRM API?
Thank you in advance for your help.





Unfortunately this is not the case for Dynamics. The Refresh Token they provide expires after 90 days, and every time you ask for an Access Token you get an updated Refresh Token. As a consequence, in this case you will need to take the value from the 3CX configuration, by parsing the XML. This is a pretty simple task anyway, as you have the JSON / XML Parser component.Hi @edossantos,
Thank you so much for your help reply.
As per you reply at the post https://www.3cx.com/community/threads/multiple-api-call-to-get-agent-extension-in-cfd.84402/ can I use the hardcode of Refresh Token?
View attachment 28772
View attachment 28773


Edit your post and then delete the attachment. In any case, please revoke the token from Dynamics, so it can't be used, as it has been exposed for too long.
You can add the@edossantos
As per Execute C# File documentation, C# script can't include any namespace declaration.
To get value from XML file with C#, I need to add System.Xml.
Please help how should I continue.
Thank you so much.
View attachment 28886
View attachment 28887
using System.Xml; statement at the top. What you can't have is the namespace XMLParser line. Just add your class, and you will be fine.
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.