Interface for save event arguments.

Hierarchy

Methods

  • Returns XrmEnum.SaveMode

    The save mode.

    Summary

    Gets save mode, as an integer.

    Description

    Gets save mode, as an integer.
    Values returned are:

    • 1 Save
    • 2 Save and Close
    • 59 Save and New
    • 70 AutoSave (Where enabled; can be used with an OnSave handler to conditionally disable auto-saving)
    • 58 Save as Completed (Activities)
    • 5 Deactivate
    • 6 Reactivate
    • 47 Assign (All user- or team-owned entities)
    • 7 Send (Email)
    • 16 Qualify (Lead)
    • 15 Disqualify (Lead)
  • Returns a boolean value to indicate if the record's save has been prevented.

    Returns boolean

    true if saving is prevented, otherwise false.

  • Prevents the save operation from being submitted to the server. All remaining "on save" handlers will continue execution.

    Returns void

  • Cancels the save operation if the event handler has a script error, returns a rejected promise for an async event handler or the operation times out.

    Returns void

Generated using TypeDoc