ftos.data.executeDbTask

IMPORTANT!  
Starting with v24.3.0, this is renamed from executeDbTask to ftos.data.executeDbTask.

Executes a database stored procedure that has been registered as a DB task in FintechOS Studio.

IMPORTANT!  
This function works only for stored procedures in the Ebs database schema.

This is a data service method for business service components.

Syntax

Copy
function ftos.data.executeDbTask(dBTaskName : string, parameters : any): IFtosExecuteDbTaskResult;
 
Parameter Type Description
dBTaskName string Name of the DB Task registered in FintechOS Studio.
parameters any JSON object containing key-value pairs matching the names and values of the database stored procedure's input parameters.

Return Value

Returns a IFtosExecuteDbTaskResult object containing the stored procedure's output (result set and return value). For example:

Copy
{
    "Records": [
        {
            "Name": "mrBrown",
            "FirstName": "James",
            "LastName": "Brown"
        },
        {
            "Name": "mrJDoe",
            "FirstName": "Johnathan",
            "LastName": "Doe"
        },
        {
            "Name": "mrBlack",
            "FirstName": "Vince",
            "LastName": "Black"
        }
    ],
    "ReturnValue": 0
}

Type Aliases

Examples