I am trying to connect to crm 2016 with node js rest api. I'm trying to do a simple retrieve and i don't get any error message. Please maybe someone know about library that can help me with this issuse?
Asked
Active
Viewed 485 times
-3
-
2Share the code to assist you – Arun Vinoth-Precog Tech - MVP Jun 25 '17 at 15:00
1 Answers
2
To access Dynamics CRM 2016 via REST APIs you should know your Organisation Service Base URL. You can retrieve the URL by following below steps:
login to CRM -> Settings -> Customizations -> Developer Resource -> Service Root URL
Sample of Service Root URL : https://xxx.api.crm8.dynamics.com/api/data/v8.2/
Now, you can use this URL to access all the resources of Dynamics CRM with OAuth authentication.
You can use Request
node module to access the Dynamics CRM resources like account, contact, etc with NodeJS.
Sample URL to retrieve all Contacts from Dynamics CRM as below:
GET https://xxx.api.crm8.dynamics.com/api/data/v8.2/contacts
Headers:
Authorization - Bearer <Access_Token>
Accept - application/json
Also, please take care of proxy as well if you are in secured network.

NikhilK
- 181
- 2
- 12