npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dynamicsnode

v0.0.19

Published

Create simple scripts to interact with Dynamics CRM using Node.js

Downloads

7

Readme

Windows Build Ubuntu Build Coveralls npm npm downloads dependencies ghit.me

Project description

DynamicsNode is a library built on node.js that allows you to quickly create scripts to interact with Microsoft Dynamics CRM using JavaScript.

The main goal of DynamicsNode is to make you very productive when it comes to automate small tasks in Dynamics CRM. Just create a .js file, add a few lines and execute it.

No more .net console applications with all the boilerplate code just for creating one record. Go productive!

Github project: https://github.com/crisfervil/DynamicsNode

Review the changelog to see the latest changes.

How to use it

Create a new directory to store your scripts and cd into it

$ mkdir MyScripts && cd MyScripts

Install DynamicsNode

$  npm install dynamicsnode

Writing code

Create a new js file named myscript.js and start adding code

var dn = require("dynamicsnode");

// update this with your CRM url and credentials if needed
var crm = new dn.CRMClient("Url=http://crm.contoso.com/xrmContoso"); 

// retrieve current user information
var who = crm.whoAmI();
var myUserInfo = crm.retrieve("systemuser",who.UserId);
console.log(myUserInfo.fullname); // prints your user name

// retrieve a user named John Doe
var anotherUser = crm.retrieve("systemuser",{fullname:"John Doe"});
console.log(anotherUser); // prints all the attributes of the user

Save the file and run the script.

In order to run the script use node

$ node myscript

Further information: API

How to compile and test the code: Compile and Testing

Use it as a command line tool: Commands and Repl

Requirements

Requires Node.js

This tool is based on Edge and requires .NET Framework 4.5 to be installed.

It has been tested in Windows environments only, but could potentially work in Linux too using Mono.

Supported CRM versions

Tested on CRM 2011, 2013 and CRM Online so far.

Volunteers to run the integration tests on other versions are more than welcome :)

Backlog

(Ordered by priority)

  • [ ] Improve documentation (work In progress)
  • [ ] Add DataTable functions (work in progress)
  • [ ] Refactor to minimize .net code
  • [ ] Increase code coverage
  • [ ] Add paging support in queries
  • [ ] Add async support
  • [ ] Improve Exception handling
  • [ ] Add support for .net core
  • [ ] Make it work in Mono and Linux
  • [ ] Improve Exception Handling to show errors in CRM side
  • [ ] Add functions to work with solutions
  • [ ] Add integration tests for activities
  • [ ] Add an Assert object to allow create integration tests
  • [ ] Add examples page
  • [ ] Add a commands to work with connections
  • [ ] Add more commands to repl mode
  • [ ] Add support for missing operators in condition objects
  • [ ] Add d.ts file to Typings repository
  • [ ] Add functions to create performance tests
  • [ ] Add functions to allow Continuos Integration tools
  • [ ] Add extensibility
  • [x] ~~Improve testeability and integration tests~~
  • [x] ~~Add import/export commands~~
  • [x] ~~Add test coverage reports~~
  • [x] ~~Upload npm package~~