addUpdateDataStatement collections

Hello Everyone

I'm creating an IVR flow using Architect Scripting.

I need to create an update data component, with a string collection, getting the uui data from call:

const updateDataUuiData = scriptingActionFactory.addActionUpdateData(startupTask, 'UUIIData');

updateDataUuiData.addUpdateDataStatement(archInboundCallFlow.dataTypes.string, 'Flow.var_scr_uuiData', 'Split(Call.UUIData,",")');

or instead of the last line:

updateDataUuiData.addUpdateDataStatement(archInboundCallFlow.dataTypes.strings, 'Flow.var_scr_uuiData', 'MakeEmptyList(ToString(NOT_SET))');

But in both cases, it is creating a string var and not a collection of string. The documentations in https://mypurecloud.github.io/purecloud-flow-scripting-api-sdk-javascript/ArchDataType.html says: "Remember that the text Collection will be automatically appended if the data type is a collection and not a singleton."

Why, if I sent the value of the bar like a collection, it was define like a text var and not like a text collection?
Is there anyway to send a parameter to define the var like text collection?

Thank you!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.