Flow.apex

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

Function Methods Guide

Function Methods

Func Arguments

These methods specify the arguments of the Flow Func.

MethodDescription
inputAs(String)Rename first argument
inputAs(String, String)Rename first two arguments
inputAs(String, String, String)Rename first three arguments
inputAs(List)Rename the givne arguments

Func Return Type

These methods specify the return type of the Flow Func.

MethodDescription
returnObject(Type)Specify the return type
returnObject()Return Object
returnBoolean()Return Boolean
returnInteger()Return Integer
returnLong()Return Long
returnDouble()Return Double
returnDecimal()Return Decimal
returnString()Return String
returnList()Return List
returnSet()Return Set
returnMap()Return Map
returnSObject()Return SObject
returnDate()Return Date
returnTime()Return Time
returnDatetime()Return Datetime
returnFunc()Return Func

Func Do Return

These methods return a value from the Flow Func.

MethodDescription
doReturn(Object)Return the value, treating Strings as FlowScript
doReturnRaw(Object)Return the value, treating Strings as raw

Func Trigger

These methods trigger the Flow Func to run.

MethodDescription
run(...)Run the Func with the arguments
runN(List)Run the Func with the list of arguments

Contribute on Github! Edit this section.