1.3.10 • Published 6 years ago

crmwebapi-ntlm v1.3.10

Weekly downloads
18
License
-
Repository
github
Last release
6 years ago

Note: This is a fork

This is a fork that adds NTLM support for On Premise CRM deployments to the library. Please reference the main branch of the project for questions about the core.

Currently the nodejs library only supports oAuth authentication use Adal.js for Node to get an access token for real applications or https://xrm.tools/AccessToken for testing

#Getting Started

npm install crmwebapi-ntlm

Usage example

You can find other query example information here

var CRMWebAPI = require('CRMWebAPI');

var apiconfig = { APIUrl: 'https://orgname.crm.dynamics.com/api/data/v8.0/', AccessToken: "<accesstoken>" };

var crmAPI = new CRMWebAPI(apiconfig);

crmAPI
	.Create("accounts", { "name": "test2" })
		.then(
			function(r){
				console.log('Created: ' + r);
				return crmAPI.Update('accounts', r, { "name": "test2updated"});
			}, 
			function(e){
				console.log(e);
			})
		.then(
			function(r){
				console.log('Updated: ' + r.EntityID);
				return crmAPI.Delete('accounts', r.EntityID);
			}, 
			function(e){
				console.log(e);
			})
		.then(
			function(r){
				console.log('Deleted');
			}, function(e){
				console.log(e);
		})
1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago