Skip to main content

message.get

message.get(key)

Description

Gets the value in the message at the key.

Parameters

ParameterTypeExplanation
keyStringField name (use a / between field names when the field is within another field)

Example

counter = message.get("counter")
counter += 1
message.counter = counter
api.publish(message)