Displays a confirmation dialog, with "OK" and "Cancel" buttons.
The message.
The "OK" callback.
The "Cancel" callback.
Returns the valid state transitions for the specified entity type and state code.
The logical name of the entity.
The state code to find out the allowed status transition values.
Returns an object with .then() function. The parameter to the delegate is an array of numbers representing the valid status transitions.
Returns the entity metadata for the specified entity.
The logical name of the entity.
Optional
attributes: string[]The attributes to get metadata for.
The method provides access to the global context without going through the form context.
Returns the name of the DOM attribute expected by the Learning Path (guided help) Content Designer for identifying UI controls in the model-driven apps forms. An attribute by this name must be added to the UI element that needs to be exposed to Learning Path (guided help).
DOM attribute expected by the Learning Path (guided help) Content Designer.
Gets the page context as an object representing the page.
The method returns an object with the input property. The input property is an object with the following attributes depending on whether you are currently on the entity form or entity list
Invokes an action based on the specified parameters
Name of the process action to invoke.
An object containing input parameters for the action. You define an object using key:value pairs of items, where key is of String type.
Query if 'entityType' is an Activity entity.
Type of the entity.
true if the entity is an Activity, false if not.
Deprecated in v9. Use Xrm.Utility.getEntityMetadata(entityName, ["IsActivity"]) instead.
The isActivityType method is synchronous so it was suitable for ribbon rules. However, the replacement method, getEntityMetadata, is asynchronous, and is not suitable for ribbon rules.
Opens a lookup control to select one or more items.
Defines the options for opening the lookup dialog
Opens an entity form.
The entity's logical name.
Optional
id: string(Optional) The unique identifier for the record.
Optional
parameters: Xrm.Utility.FormOpenParameters(Optional) A dictionary object that passes extra query string parameters to the form.
Optional
windowOptions: WindowOptions(Optional) Options for controlling the window.
Opens quick create.
The logical name of the entity to create.
Optional
createFromEntity: Xrm.LookupValue(Optional) Designates a record that will provide default values based on mapped attribute values.
Optional
parameters: OpenParameters(Optional) A dictionary object that passes extra query string parameters to the form. Invalid query string parameters will cause an error.
Returns an asynchronous promise.
Opens an HTML Web Resource in a new browser window.
Name of the HTML web resource. Can be used to pass URL parameters. See Remarks.
Optional
webResourceData: string(Optional) Data to pass into the Web Resource's data parameter. It is advised to use encodeURIcomponent() to encode the value.
Optional
width: number(Optional) The width of the new window.
Optional
height: number(Optional) The height of the new window.
A Window reference, containing the opened Web Resource.
Deprecated in v9. Use openWebResource instead.
External Link: Deprecated Client APIs
This function will not work with Microsoft Dynamics CRM for tablets.
Valid WebResource URL Parameters:
Refreshes the parent grid containing the specified record.
Displays a progress dialog with the specified message. Any subsequent call to this method will update the displayed message in the existing progress dialog with the message specified in the latest method call.
The message to be displayed in the progress dialog.
Generated using TypeDoc
Interface for the Xrm.Utility API
See
External Link: Xrm.Utility (Client API reference)