Showing posts from February, 2018

Client API execution context

We can pass the execution context in the following way. Defining event handlers using UI : The execution context is an  optional  parameter that can be passed to a JavaScript library function through an event handler. Use the  Pass execution context as first parameter  option in the  Handler Properties  dialog while specify the name of the function to pass the event execution context. The execution context is the first parameter passed to a function. The Client API form context ( formContext ) provides a reference to the form or to an item on the form, such as, a quick view control or a row in an editable grid, against which the current code is executed. Earlier, the global  Xrm.Page  object was used to represent a form or an item on the form. With Dynamics 365 (online), version 9.0, the  Xrm.Page  object is deprecated, and for you should use the getFormContext method of the passed in execution context object to return reference to the appropriate form or an item on the f