Notifications
Announcements
No record found.
Hi,
I have a website from which i want to access the crm through webapi using JavaScript. How to Achieve this?
Thanks & Regards,
Aldous Huxley V
*This post is locked for comments
Here is a link that might help you. Also are you trying to write data to CRM or read from CRM?
msdn.microsoft.com/.../gg334279.aspx
You can try using the WebApi library by David Yack. It's a lightweight library with different methods of authentication:
github.com/.../Xrm.Tools.CRMWebAPI
Hope this helps.
Hi Aric, Can u give me some sample or example?
If you are trying to access CRM data through Javascript from an external website, please know that this is not possible. The CRM api needs authentication and a user context and doesn't allow anonymous access. And passing credentials in Javascript is not secure.
If you need to show data on you website, you need a server api between your website and CRM that handles your authentication.
The links above are for using javascript within CRM.
I agree with you that JavaScript is not secure since it runs in the DOM and the better approach is to connect through the back end. But, if you are using an application like node.js it allows JavaScript to run on a server just like we are use to with C#. Here is another article I found where a user gives an example of using JavaScript in a web portal with a link to github.
community.dynamics.com/.../web-api-authentication-from-javascript
Hi James,
I wasn't considering NodeJS as an option. I agree, if it's node JS you can securely call the api's.
Try below link
dotnetdeveloper2012.blogspot.com/.../dynamics-crm-access-local-web-api.html
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2