Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source control for MS Dynamics CRM

I'm undecided about CRM at the moment. It's a great tool for the business users but so far for development it's been a bit against the grain. The next problem I need to tackle is how to easily source control javascript used within forms. We use TFS for our source control.

Anyone had an experience or have any ideas on how to do this?

Obvious choice would be to copy and paste the JS in to your source control, but it's also an obvious pain in the rear.

like image 940
Chaos Avatar asked Jun 08 '11 01:06

Chaos


People also ask

Is Microsoft Dynamic open source?

Microsoft Dynamics NAV developed from Navision Unusually for a Microsoft product, Microsoft Dynamics NAV is open source.

What are controls in Dynamics 365?

You can use a rich set of additional controls to create a more touch-friendly experience on Dynamics 365 for phones and tablets. These include sliders, switches, multimedia player, input masks, calendar, and other controls. You can use these additional controls only with the mobile apps and Unified Interface apps.

How do I create a custom control in Dynamics 365?

In the form editor, double-click the field where you want to add a custom control, such as the Budget Amount field on the opportunity main form. Alternatively, you can create a custom field. On the Field Properties page, select the Controls tab, and then select Add Control.

What is Web resource in Dynamics CRM?

Web resources are virtual files that are stored in the Dynamics 365 Customer Engagement (on-premises) database and that you can retrieve by using a unique URL address.


2 Answers

A couple of things that we do in our projects:

  1. We use the Web Resource Utility included with the CRM SDK (actually a modified version of it) to deploy JavaScript web resources to a particular solution. Makes it very easy to keep script files checked in to source control as normal and avoid copying and pasting.
  2. We wrote a custom HTTP Module that we use on local deployments. It intercepts requests for JavaScript libraries and redirects them to a location on local disk. That way, we don't have to actually redeploy the web resources as we test, just the JavaScript files to disk. (Note that this would be unsupported in a production environment. We just do it in our development environments to ease the pain of JavaScript deployment).
like image 123
Matt Avatar answered Nov 15 '22 23:11

Matt


I answered a very similar question here - Version Control for Visual Studio projects and MS Dynamics CRM (javascript)

My choice for source control is TFS holding each of the 2011 JScript libraries.

like image 43
cchamberlain Avatar answered Nov 16 '22 00:11

cchamberlain