Friday, October 10, 2014

CRM REST Builder v1.0.0.0

This is a project I've been working on for a while and finally decided to pull the trigger on and get published to CodePlex. It will help developers generate code for making different requests against the REST/OData endpoint in Dynamics CRM 2011 and 2013. It will generate code for all the supported actions in the endpoint - Create, Retrieve, Retrieve Multiple, Update, Delete, Associate, and Disassociate and will generate the output code using a basic XMLHTTPRequest or through a few popular libraries like the XrmServiceToolkit, jQuery, SDK.REST, and SDK.JQUERY (in the CRM SDK). You are able to dictate if the request is executed asynchronously or synchronously (where supported) and for querying it handles all the supported functionality of the CRM REST endpoint like top, grouping, filtering and sorting.

It's built with HTML/JavaScript and installs via a managed solution into CRM 2011 and 2013 both Online and On Premise.



Besides being able to generate code the tool will also allow you to execute it right away. That adds some additional benefit because you could do things like update a read-only field on a record without having to either export/import or go into the form editor, remove the lock, edit, and re-lock. This can work well in conjunction with the bookmark shortcut fellow CRM MVP Blake Scarlavai published on popping up the record id without having to grab it from the address bar.

A little background on why I created this, first off when I personally go to write JavaScript code I can never remember what the field names are let alone some of the relationship names that are used in some of the more advanced REST operations. Another reason I created this tool is that a lot of people on the various CRM forums are asking questions on how to generate different requests and it seems that most were using 1 of the 5 methods of output the tool will support. So I created this tool to help answer some of those questions.

So check it out, hopefully it helps speed up some complex JavaScript development. Please report issues or make suggestions to the CodePlex site and inevitable this initial release will have a few quirks that need to get worked out.