Giter Club home page Giter Club logo

common-crm-functions's Introduction

Common-CRM-Functions

The Common CRM Functions JavaScript library is designed for Microsoft Dynamics CRM Administrators or Developers who would like an easy way to complete customizations in CRM without having to worry about all of the syntax of the XRM structure. It gives easy to use functions to complete a wide variety of actions, the combination of which can solve many issues facing a CRM deployment.

This is a single web resource file, so it can be added to your deployment manually or added via the solution provided. Nothing other than the web resource is added to your deployment.

To add to your CRM:

  1. click the download as zip button above
  2. Open the zip folder and extract the contents
  3. Import the zipped managed solution folder to your CRM, or add the single .js file to your own solution as a web resource
  4. Be sure to add the script to your form before attempting to call any of the functions

This wiki will give an explanation of each function, and the input parameters needed to for it to run successfully. There are some important notes on this library.


  1. In order for you to access the functions in your CRM Org, the web resource must be added to the entity form.
  2. Many of the functions have built in fail-safes, preventing them from running and throwing an error if a field is not present or incorrect information was passed in. Most, if not all, of these fail-safes will create an entry in your console log indicating what function was bypassed and why. While not perfect, it should help avoid common mistakes.
  3. All functions calls are formatted as 'CRM.' for easier understanding of which calls in your code point to this library
  4. This is meant to be a resource for Administrators and some developers working in CRM. It does not include any advanced functions, such as SOAP or REST. It does not require any other JS libraries to be installed.

Please leave any issues or requests on the issue page above, or you can provide feedback to me at my website: The Functional CRM Admin

Function Documentation by Type

Field Visibility Functions
Page / Browser Context Functions
Miscellaneous Functions
Locking Fields as Read Only
Getting and Setting Field Values

All Functions


CRM.fieldExists
CRM.tabExists
CRM.sectionExists
CRM.returnValue
CRM.notificationBar
CRM.clearNotification
CRM.showField
CRM.showFieldArray
CRM.showSection
CRM.showTab
CRM.getLookupValue
CRM.setLookupValue
CRM.saveRecord
CRM.fieldWarning
CRM.openQuickCreate
CRM.showBPF
CRM.refreshWebResource
CRM.setReadOnly
CRM.setReadOnlyArray
CRM.setReadOnlySection
CRM.setReadOnlyTab
CRM.setReadOnlyAllFields
CRM.setRequired
CRM.setRequiredArray
CRM.formReload
CRM.optionSetText
CRM.formatPhone
CRM.openLookupRecord
CRM.filterLookup
CRM.pageContext
CRM.openForm

common-crm-functions's People

Contributors

gole1296 avatar

Stargazers

Noor M avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.