Interface for the formContext.data object.

Hierarchy

  • Data

Properties

Collection of non-entity data on the form. Items in this collection are of the same type as the attributes collection, but they are not attributes of the form entity. In V9 this is only available in the Unified Client

entity: Xrm.Entity

The record context of the form

The process API for formContext.ui.process.

Remarks

This member may be undefined when Process Flows are not used by the current entity.

See

External Link: formContext.data.process (Client API reference)

Methods

  • Adds a function to be called when form data is loaded.

    Parameters

    • handler: DataLoadEventHandler

      The function to be executed when the form data loads. The function will be added to the bottom of the event handler pipeline.

    Returns void

  • Gets a boolean value indicating whether the form data has been modified.

    Returns boolean

    Returns true if the form data has changed; false otherwise.

  • Gets a boolean value indicating whether all of the form data is valid. This includes the main entity and any unbound attributes.

    Returns boolean

    Returns true if all of the form data is valid; false otherwise.

  • Asynchronously refreshes data on the form, without reloading the page.

    Parameters

    • save: boolean

      true to save the record, after the refresh.

    Returns PromiseLike<undefined>

    Returns an asynchronous promise.

  • Removes a function to be called when form data is loaded.

    Parameters

    Returns void

  • Asynchronously saves the record.

    Returns PromiseLike<undefined>

    Returns an asynchronous promise.

  • Asynchronously saves the record with the option to set callback functions to be executed after the save operation is completed.

    Parameters

    • saveOptions: SaveOptions

      Options to control how appointment, recurring appointment, or service activity records are processed.

    Returns PromiseLike<undefined>

    Returns an asynchronous promise.

Generated using TypeDoc