This class handles the invocation type of Validate and uses Entity Actions to validate a record and provide the results back to the caller

Hierarchy (view full)

Constructors

Methods

  • Attempt to execute a script and wraps in try/catch to handle any errors so that no exceptions are thrown The scripts are passed an object called EntityActionContext which has a property called entityObject that is the entity object for the current Entity Action. The script can do whatever it wants to do, and passes back a value in the result property of the EntityActionContext object

    Parameters

    • EntityActionID: string
    • scriptText: string

      the script to execute

    • entityObject: BaseEntity<unknown>

      the entity object to pass to the script

    Returns Promise<any>