ftos.data.getFlowData

(FintechOS v8.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);

Intellisense

IntelliSense support is available for the ftos.data.getFlowData server SDK method, enabling digital developers to discover and navigate workflow data domain entities, attributes, and relations (both one-to-one and one-to-many) directly through code suggestions as they type. It works consistently across server-side scripts, business service components, and frontend code, dynamically reflecting each workflow's configured data domain to speed up development and reduce runtime errors from mistyped paths.

Scenarios: