addUpdateDataStatement

Hi, when creating a new Update Data Action I am unsure of the value for the first field

const anUpdateData = scriptingActionFactory.addActionUpdateData( startupTask, 'update the data' );
anUpdateData.addUpdateDataStatement( ArchVariableInteger, 'Task.var1', '3' )

The addUpdateDataStatement returns an error for the ArchVariableInteger entry for the first field as below

ERROR! ArchFactoryFlows.createFlowInboundCallAsync - Caught unhandled exception during callback function execution. Ending session. Exception info: ReferenceError: ArchVariableInteger is not defined -- [ArchFactoryFlows]

What should be passed in this field?

Mike

const anUpdateData = actionFactory.addActionUpdateData(startupTask, 'update the data');
anUpdateData.addUpdateDataStatement(archFlow.dataTypes.integer, 'Task.var1', '3');

Thanks Melissa, that worked a treat

Mike

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