Flow.apex

  • Docs
  • Tutorials
Docs Menu
  • Flows
  • Flow Methods
    • Creation Methods
    • Function Methods
    • Block Methods
    • Static Methods
  • FlowScript

Block Methods Guide

Block Methods

Block Trigger

These methods trigger the block to run.

MethodDescription
execute(Map)Execute the block with the variables

Assign Variables

These methods assign the variable values.

MethodDescription
var(String)Run the simplified assignment
var(String, Object)Assign the value to the variable with the name

If Control

These methods do the if control.

MethodDescription
doIf(Object, Block)If ... then ...
doIf(Object, Block, Block)If ... then ... else ...
doIfNot(Object, Block, Block)If not ... then ... else ...
doIfNot(Object, Block)If not ... then ...

For Control

These methods do the for control.

MethodDescription
doFor(String, Object, Object, Object, Block)for i = 0; i != 10; i = i + 1 loop
doFor(String, Object, Block)for ... in loop
doFor(String, Block)Simplified for loop statement

While Control

These methods do the while control.

MethodDescription
doWhile(Object, Block)while ..., do ...

Switch Control

These methods do the switch control.

MethodDescription
doSwitch(Object, List)switch ... case ...

Break && Continue

These methods are useful in loop and switches.

MethodDescription
doBreak()Break
doContinue()Continue

Debug

These methods are useful for debugging.

MethodDescription
debug()Print the variables in the current block

Contribute on Github! Edit this section.