Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

KeyValuePair connector methods

The Keyvalue pair connector methods perform various actions on key value pairs. In an automation flow, the methods are connected with other methods and components. To use the methods, you must first expose them.

Add

Adds a keyvalue pair.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyName of the key.Data inStringNoneYes
ValueValue of the key.Data inObjectNoneYes
IgnoreDuplicatesIf the value is True, the method ignores a duplicate key. Else, if the value is False, the method returns an error message.Data inBooleanNoneNo

Clear

Clears all keyvalue pairs.

ContainsKey

Returns True if the specified key exists, else, returns False.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyName of the key.Data inStringNoneYes
ReturnReturns True if the specified key exists, else, returns False.Data outBooleanNot applicableNot applicable

ContainsValue

Returns True if the specified key value exists, else, returns False.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
ValueName of the key value.Data inStringNoneYes
ReturnReturns True if the specified key value exists, else, returns False.Data outBooleanNot applicableNot applicable

Count

Returns the total count of keyvalue pairs.

ParameterDescriptionData port typeData typeDefault valueMandatory?
ReturnReturns the total count of keyvalue pairs.Data outIntegerNot applicableNot applicable

Delete

Removes the specified key.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyName of the key.Data inStringNoneYes

GetItem

Returns the value of the specified key.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyName of the key.Data inStringNoneYes
ReturnReturns the value of the key.Data outObjectNot applicableNot applicable

GetItems

Returns the values of multiple keys. You must first configure the keys in the method.

To configure, do the following steps.

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add keys icon (
Image omitted: add-image-icon.png
Add keys icon.\).
  1. Enter the key name.
  2. Update the key data type from the list.
  3. Repeat the steps to set multiple key names.
  4. Click OK.

    A Data out port is created with each key name you set.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyReturns the value of the key.Data outObjectNot applicableNot applicable

GetItemsByIndex

Returns the key values based on their index. You must first configure the indexes in the method.

To configure, do the following steps.

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add indexes icon (
Image omitted: add-image-icon.png
Add keys icon.\).
  1. Enter the key index.
  2. Update the key data type from the list.
  3. Repeat the steps to set multiple key indexes.
  4. Click OK.

    A Data out port is created with each key index you set.

ParameterDescriptionData port typeData typeDefault valueMandatory?
Key indexReturns the value of the key.Data outObjectNot applicableNot applicable

ParseFromText

Parses the specified text into key value pairs. It can create multiple keyvalue pairs.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
TextText comprising the keys and values that the method parses.Data inStringNoneYes
ItemSeparatorSeparator between two keyvalue pairs.Data inStringNoneYes
KeyValueSeparatorSeparator between the key and its value.Data inStringNoneYes
ClearBeforeParseIf True, clears any existing keyvalue pair before parsing.Data inBooleanNoneNo

Reverse

Reverses the key indexes.

Tip: After executing the method, you can see the output by executing the GetItemsByIndex method.

SetData

Need information.

SetItem

Updates the value of a key.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyName of the key.Data inStringNoneYes
ValueUpdated value of the key.Data inObjectNoneYes

Tip: Test the updated value by executing the GetItemsByIndex method.

SetItems

Updates the values of the specified keys. You must first configure the keys in the method.

To configure the keys, do the following steps.

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add keys icon (
Image omitted: add-image-icon.png
Add keys icon.\).
  1. Enter the key name.
  2. Update the key data type from the list.
  3. Repeat the steps to set multiple key names.
  4. Click OK.

    A Data in port is created with each key name you set.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
KeyUpdated value of the key.Data inObjectNoneYes

Tip: Test the updated value by executing the GetItemsByIndex method.

SetItemsByIndex

Updates the values of the keys based on the specified indexes. You must first configure the indexes in the method.

To configure the indexes, do the following steps.

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add indexes icon (
Image omitted: add-image-icon.png
Add keys icon.\).
  1. Enter the key index.
  2. Update the key data type from the list.
  3. Repeat the steps to set multiple key indexes.
  4. Click OK.

    A Data in port is created with each key index you set.

ParameterDescriptionData port typeData typeDefault valueMandatory?
Key IndexIndex of the key.Data inObjectNoneYes

Tip: Test the updated value by executing the GetItemsByIndex method.

ToJSON

Renders the keyvalue pairs to the JSON format.

ToText

Renders the keyvalue pairs to the text format.

To provide inputs to the parameters, see Configure port properties.

ParameterDescriptionData port typeData typeDefault valueMandatory?
ValuesOnlyIf True, the method renders only the values of the keys, else, renders the keyvalue pair.Data inBooleanNoneNo
ReturnReturns the keyvalue pair to the text format.Data outStringNot applicableNot applicable

Parent Topic:Keyvalue pair