Dynamics CRM 2013: Using OOB JScript functions

I always wondered if there is a way to leverage OOB (Out Of the Box) CRM JScript functions. If I can, this will save me a lot of time from rewriting these functions to execute my business logic. I’m happy to share with you the result of my finding, not sure if this is supported, so use at own risk.

What I had to do was register the Type.registerNamespace(“Mscrm”); namespace in my JScript file and then I was able to start taking advantages of the OOB JScript functions.

In this example I’m refreshing a CRM grid using the OOB function:

//Script Example
Type.registerNamespace(“Mscrm”); //CRM Namespace
calculatePointsSelectedOnClick = function(gridControl,entityTypeCode,selectedRecords){
Mscrm.RibbonActions.refreshGrid(gridControl); //Out the box CRM function

This means that I can be able to leverage the OOB CRM functions, will keep updating this post as I use/discover more functions.


2 Responses to Dynamics CRM 2013: Using OOB JScript functions

  1. John says:

    Where are the OOB JScript functions documented? Can’t seem to find them in the SDK or online. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Workflow Elements by Aiden Kaskela

Microsoft Business Solutions MVP (CRM), Contractor, Evangelist


Real Experiences from Analyzing, Architecting, developing and working with Dynamics CRM, Dynamics 365 and sometimes .net

Mark Margolis's Blog

It's about Software, CRM, Product Development and sometimes Food.


Gareth Tucker on Microsoft Dynamics CRM

Donna Edwards

Sharing my Journey with Microsoft Dynamics 365 Business Solutions

The WordPress.com Blog

The latest news on WordPress.com and the WordPress community.

%d bloggers like this: