Member Junction
    Preparing search index...

    Class EntityActionInvocationMultipleRecords

    Base class for invocation of any entity action invocation type that is multiple-record oriented. Handles getting the list of records from the provided parameters (either ListID or ViewID), getting the actual records for each of those scenarios, and then invoking the action for each record, aggregating the results and returning a single ActionResult object.

    Hierarchy (View Summary)

    Index

    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

        the entity object to pass to the script

      Returns Promise<any>