CRM 2015 Cheat Sheet Client API
CRM 2015 Cheat Sheet Client API
Xrm.Utility
Xrm.Page.data
Parameters
Description
alertDialog
message,onCloseCallback?
confirmDialog
message,yesCloseCallback?,noCloseCallback?
isActivityType
entityName
openEntityForm
name,id?,parameters?,windowOptions?
Xrm.Page
Xrm.Page.data.entity
Parameters
Description
refresh
save?
save
saveOptions?
then
successCallback?, errorCallback?
Xrm.Page.data.entity attribute/Xrm.Page.getAttribute
Parameters
Description
Parameters Description
attributes
getDataXml
getEntityName
getId
getIsDirty
addOnSave
removeOnSave
getPrimaryAttributeValue
Gets a string for the value of the primary attribute of the entity
controls
getAttributeType
getFormat
getIsDirty
getActiveProcess
save
action?
Xrm.Page.data.process
Parameters
Description
getMaxLength
getAttribute
schemaName
getName
getControl
Id
getParent
setActiveProcess
getUserPrivilege
getActiveStage
addOnChange
removeOnChange
Xrm.Page.context
Parameters Description
client.getClient
fireOnChange
client.getClientState
setRequiredLevel
getClientUrl
Returns the base URL what was used to access the application.
getRequiredLevel
getCurrentTheme
setSubmitMode
Returns the LCID value that represents the base language for the
organization.
Returns the unique text value of the organizations name.
setValue
getIsAutoSaveEnabled
getOrgLcid
getOrgUniqueName
getQueryStringParameters
Returns a dictionary object of key value pairs that represents the query
string arguments that were passed to the page.
Returns the difference between the local time and Coordinated Universal
Time (UTC).
Returns the GUID of the SystemUser.Id value for the current user.
getTimeZoneOffsetMinutes
getUserId
getUserLcid
Returns the LCID value that represents the Language Pack that the user
selected as their preferred language.
Returns the name of the current user.
getUserName
getUserRoles
prependOrgName
sPath
Returns and array of strings that represent the GUID values of each of the
security roles that the user is associated with or any teams the user is
associated with.
Prepends the organization name to the specified path.
Collections
getInitialValue
getOption
getOptions
getSelectedOption
getText
value
Number
setActiveStage
Description
Returns a Process object representing the active process.
processId,
callbackFunction?
stageId,
callbackFunction?
getEnabledProcesses
callbackFunction
moveNext
callbackFunction?
movePrevious
callbackFunction?
getActivePath
addOnStageChange
removeOnStageChange
addOnStageSelected
removeOnStageSelected
Process
getId
getName
getStages
isRendered
Stage
getMax
getMin
getEntityname
getPrecision
getId
getName
getStatus
getSteps
forEach
delegate function
getIsPartyList
get
value
Parameters
OptionSet/Boolean
Lookup
Execution Context
value
getValue
Description
submitMode
getSubmitMode
Parameters
getLength
Parameters
getCategory
Steps
getAttribute
GetGlobalContext
getName
isRequired
Description
getContext
getDepth
getEventArgs
getEventSource
getSharedVariable
setSharedVariable
ClientGlobalContext.js.aspx
Xrm.Page.ui tab
Xrm.Page.ui
Parameters
Description
Parameters
close
getDisplayState
controls
setDisplayState
formSelector.items
getFormType
navigation.items
formSelector.getCurrentItem
getCurrentControl
setFormNotification
message, level, uniqueId Use this method to display form level notification.
clearFormNotification
uniqueId
refreshRibbon
Xrm.Page.ui.navigation item
Description
getId
getLabel
getName
setLabel
getParent
setFocus
getLabel
getVisible
setVisible
string
string
sections
setFocus
getVisible
setVisible
bool
Xrm.Page.ui section
tabs
getViewPortHeight
controls
getViewPortWidth
getName
getParent
getLabel
Parameters
Parameters
getDisabled
setDisabled
bool
Description
Description
setLabel
Xrm.Page.ui control/Xrm.Page.getControl
Parameters
setLabel
getVisible
setVisible
string
Description
bool
string
bool
Xrm.Page.ui.formSelector item
Parameters
Description
getId
getLabel
navigate
Xrm.Page.ui.process
Parameters
Description
setDisplayState
strExpanded
setVisible
boolVisible
Description
getAttribute
getSaveMode
getControlType
isDefaultPrevented
getName
SubGrid
getParent
refresh
getLabel
GridControl
Parameters
Description
Refreshes the data displayed in the subgrid.
setLabel
label
addOnLoad
setNotification
message,uniqueId
getContextType
clearNotification
uniqueId
getEntityName
getVisible
setVisible
bool
setFocus
addCustomView
2 Update
getViewSelector
3 Read Only
70 AutoSave
removeOnLoad
4 Disabled
58 Save as Completed
getSelectedRows
getDefaultView
getTotalRecordCount
setDefaultView
viewGuid
GridRow
getData
removePreSearch
option,[index]
clearOptions
removeOption
number
getShowTime
setShowTime
bool
getEntityReference
getId
getPrimaryAttributeValue
WebResource
getData
setData
isVisible
string
ViewSelectorItem
getEntityReference
string
IFrame
getObject
string
addOnSelection
removeOnSelection
setSearchQuery
context
data
entity
process
attribute
Process
ui
navigation
tab
item
process
addOnResultOpen
Page
getSearchQuery
Returns the default URL than an Iframe control is
getSelectedResult
configured to display.
Returns the object in the form that represents an IFrame removeOnResultOpen
getInitialUrl
getSrc
getCurrentView
kbsearch
Utility
setCurrentView
getSrc
setSrc
ViewSelector
getObject
setSrc
getEntityName
15 Disqualify
Xrm
7 Send
GridEntity
DateTime
47 Assign
16 Qualify
6 Reactivate
getEntity
OptionSet
addOption
GridRowData
5 Deactivate
6 Bulk Edit
getRows
addPreSearch
Value Text
Value Text
1 Save
Grid
filter,entityLogicalName
.getSaveMode()
.getFormType()
0 Undefinied
Lookup
addCustomFilter
preventDefault
Stage
control
section
formSelector
Steps
item