ftos.data.getFlowData

(FintechOS v24.5.0 to later)

Reads the data for a given flow instance and returns the flow name and instanceId.

Syntax

Copy
(method) Data.getFlowData(flowName: string, instanceId: string): any
 
Parameter Description
flowName The name of the flow.
instanceId The id of the flow instance.

Result

It returns the flow name and instanceId.

Example

You have a running flow instance and you want to read the data and log a field from it.

Copy
var flowName = "LoanApplicationFlow";
var instanceId = "3f4a9a8c-12ab-4cde-9f01-234567890abc";

var instanceObject = ftos.data.getFlowData(flowName, instanceId);
var amount = instanceObject.amount;
console.log("Amount for this instance is:", amount);