A dictionary, also known as a hash map or associative array, is a data structure that stores key-value pairs. Each key is unique and maps to a specific value. In viaSocket, a dictionary is a field type that allows users to add custom key-value pairs, providing flexibility for various use cases.
📌For example this is particularly useful for actions like creating entries in a CRM, where users might need to add custom fields based on their specific requirements. Dictionary looks like :
🔴Note : Dictionary does not support dynamic API calls for children. Field types supported in the dictionary are string,number,boolean,and dropdown.
The JSON for creating a dictionary field includes a new keyword “template”, which defines the structure of key-value pairs. Key objects hold attributes for the left pair and value is for the right pair.
Return a object containing key and value for given pairs
key is used to access this specific column value ex: ${context.inputData.dictionaryName.key}