Execute Apex Action

Call Apex Action allows to call KanBan API or Custom Apex class.

Using KanBan APIarrow-up-right

  • Check the KanBan API checkbox (2).

  • Select the API Class Name (3).

  • Select the API Method Name (4)

  • Provide API Parameters (5).

You can use Static values, Merge Fields or Formulas to populate parameters.

See more info on Merge Fields and Formulas at Working with Context objectsarrow-up-right and Working with Functionsarrow-up-right

  • Variable Name (6) - specify name of the variable that will contain action result.

  • Execute in background (7) - select it if you need to execute "Call Apex" action in other context than current user operation.

  • Check "Wait for result" checkbox (8) if you need to receive action execution result in order to work with it (e.g., when using action in action group or getting data from external resource).

  • Populate "With gap" field (9) to set time system will wait before execute action (in minutes).

Using Custom apexarrow-up-right

  • Uncheck KanBan API checkbox (10).

  • Select the Class Name in the drop-down. If you don't see your class in the drop-down, use Filter option (11).

  • Enter Parameters in a JSON format (12).

Apex class should inherit FLX_KB.KanBanInterfaces.CallApexActionInterface

Below is an example of an apex class that is triggered by Kanban action.

It will send an email with Account name if passed parameter 'function' equals 'customFunction'.

  • Variable Name (13) - specify name of the variable that will contain action result

  • Execute in background (14) - select it if you need to execute "Call Apex" action in other context than current user operation.

  • Check "Wait for result" checkbox (15) if you need to receive action execution result in order to work with it (e.g., when using action in action group or getting data from external resource).

  • Populate "With gap" field (16) to set a wait time which action will be executed after.

See more information at Execute in background optionarrow-up-right.

  • Save the action.

Now you can call it from Kanban and other places.

Last updated