Skip to content

Objects ​

Cloud Flow Blocks reference.

Blocks ​

Call Method on Object ​

Block name: callobjectmethod

Calls a named method on an object and ignores the return value.

Inputs ​

InputTypeDescriptionAccepts
methodstringThe method name to call.
objectobjectThe object whose method should be called.
parametersobjectThe parameters to pass to the method. This is often provided by a define_object block when named parameters are needed.

Output ​

This block does not produce an output value.

Behavior ​

Generates code that calls a named method on an object through the ioLoop application helper and ignores the return value.

Calls: tvAppInstance.callMethod

Call Method on Object with Return Value ​

Block name: callobjectmethodwithret

Calls a named method on an object and returns the result.

Inputs ​

InputTypeDescriptionAccepts
methodstringThe method name to call.
objectobjectThe object whose method should be called.
parametersobjectThe parameters to pass to the method. This is often provided by a define_object block when named parameters are needed.

Output ​

This block produces an output value of type Any.

Behavior ​

Generates code that calls a named method on an object through the ioLoop application helper and returns the result.

Calls: tvAppInstance.callMethod

Flow Share Object ​

Block name: tvexportobject

Provides the current flow's shared object when $tvExports is available. In JavaScript code, values in this same shared object can be read with $io.system.getFlowShareData and updated with $io.system.setFlowShareData.

Output ​

This block produces an output value of type Any.

Behavior ​

Generates code that returns the current flow's $tvExports shared object when it is available. Related runtime APIs $io.system.getFlowShareData and $io.system.setFlowShareData can be used from JavaScript code to read or write individual values in the same shared object.

is a Valid Object ​

Block name: objectisvalid

Checks whether a value is neither null nor undefined.

Inputs ​

InputTypeDescriptionAccepts
valueobjectThe value to check.

Output ​

This block produces an output value of type Boolean.

Behavior ​

Generates a null and undefined check for the selected value. This checks existence, not object shape or type.

New Object ​

Block name: emptyobject

Creates a new empty object.

Output ​

This block produces an output value of type Any.

Behavior ​

Generates a plain empty JavaScript object literal.

Null ​

Block name: nullobject

Provides a null value.

Output ​

This block produces an output value of type Any.

Behavior ​

Generates the JavaScript null value.

Object ​

Block name: define_object

Creates an object with one or more named properties.

Inputs ​

InputTypeDescriptionAccepts
propertiesobjectThe named properties configured directly inside the block. Use the block mutator to add or remove properties, then connect blocks that provide each property's value.

Output ​

This block does not produce an output value.

Behavior ​

Generates a plain JavaScript object literal from the named properties configured in the block.

Object Method Call ​

Block name: callobjectmethod2

Calls a named method on an object using dotted-style block syntax and ignores the return value.

Inputs ​

InputTypeDescriptionAccepts
objectobjectThe object whose method should be called.
methodstringThe method name to call.
parametersobjectThe parameters to pass to the method. This is often provided by a define_object block when named parameters are needed.

Output ​

This block does not produce an output value.

Behavior ​

Generates code that calls a named method on an object through the ioLoop application helper and ignores the return value.

Calls: tvAppInstance.callMethod

Object Method Call with Return Value ​

Block name: callobjectmethodwithret2

Calls a named method on an object using dotted-style block syntax and returns the result.

Inputs ​

InputTypeDescriptionAccepts
objectobjectThe object whose method should be called.
methodstringThe method name to call.
parametersobjectThe parameters to pass to the method. This is often provided by a define_object block when named parameters are needed.

Output ​

This block produces an output value of type Any.

Behavior ​

Generates code that calls a named method on an object through the ioLoop application helper and returns the result.

Calls: tvAppInstance.callMethod

Object Property Value ​

Block name: getobjectproperty3

Gets a property value from an object using dotted-style block syntax.

Inputs ​

InputTypeDescriptionAccepts
objectobjectThe object to read from. This can be any block that returns an object, such as define_object, emptyobject, formdataobject, data_record_object, httpdata, apicalldata, or tvexportobject.
propertystringThe property name or path to read. This is typically provided by a text block. When the connected text is unquoted and contains dots, it is treated as a nested property path such as a.b.c. If the text is quoted, it is treated as one exact property name even if it contains dots.text

Output ​

This block produces an output value of type Any.

Behavior ​

Generates code that reads a property from an object through the ioLoop object helper. Unquoted dotted text is converted into a nested property path, while quoted text stays as one exact property name.

Calls: tvAppInstance.getObjProp

Set Object Property Value ​

Block name: setobjectproperty3

Sets a property value on an object using dotted-style block syntax.

Inputs ​

InputTypeDescriptionAccepts
objectobjectThe object to update. This can be any block that returns an object, such as define_object, emptyobject, formdataobject, data_record_object, httpdata, apicalldata, or tvexportobject.
propertystringThe property name or path to update. This is typically provided by a text block. When the connected text is unquoted and contains dots, it is treated as a nested property path such as a.b.c. If the text is quoted, it is treated as one exact property name even if it contains dots.text
valueobjectThe value to assign to the selected property.

Output ​

This block does not produce an output value.

Behavior ​

Generates code that sets a property on an object through the ioLoop object helper. Unquoted dotted text is converted into a nested property path, while quoted text stays as one exact property name.

Calls: tvAppInstance.setObjProp