Parameters
Copy
Ask AI
{
  "$result_object_key": [
    {
      "consent_type": "opt_in",
      "content_types": [
        "email",
        "sms_message"
      ],
      "default_translation": {
        "description": "Subscription to receive newsletters",
        "locale": "en",
        "name": "Newsletter Subscription"
      },
      "id": "sub_12345",
      "state": "live",
      "translations": [
        {
          "description": "Subscription to receive newsletters",
          "locale": "en",
          "name": "Newsletter Subscription"
        }
      ],
      "type": "subscription"
    }
  ]
}
Copy
Ask AI
{
  "$result_object_key": [
    {
      "consent_type": "Describes the type of consent",
      "content_types": "The message types that this subscription supports - can contain 'email' or 'sms_message'",
      "default_translation": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "id": "The unique identifier representing the subscription type",
      "state": "The state of the subscription type",
      "translations": {
        "description": "The description of the subscription type",
        "locale": "The locale of the subscription type",
        "name": "The name of the subscription type"
      },
      "type": "The type of the object - subscription"
    }
  ]
}
Result Object Field Details
You can use the result of the action’s data as inputs to downstream workflow actions. Each fetch action requires a result object key to be specified which will nest the action’s result data inside the downstream data context in the Workflow. Here we demonstrate how to refer to this data using the prefix$result_object_key.
Hide fields
Hide fields
The type of the object - subscription
CEL
Copy
Ask AI
$result_object_key[*].type
Example
Copy
Ask AI
"subscription"
The unique identifier representing the subscription type
CEL
Copy
Ask AI
$result_object_key[*].id
Example
Copy
Ask AI
"sub_12345"
The state of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].state
Example
Copy
Ask AI
"live"
A translation object contains the localized details of a subscription type
CEL
Copy
Ask AI
$result_object_key[*].default_translation
Example
Copy
Ask AI
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
The name of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].default_translation.name
Example
Copy
Ask AI
"Newsletter Subscription"
The description of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].default_translation.description
Example
Copy
Ask AI
"Subscription to receive newsletters"
The locale of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].default_translation.locale
Example
Copy
Ask AI
"en"
An array of translations objects with the localized version of the subscription type in each available locale within your translation settings.
CEL
Copy
Ask AI
$result_object_key[*].translations
Example
Copy
Ask AI
[
{
"description": "Subscription to receive newsletters",
"locale": "en",
"name": "Newsletter Subscription"
}
]
Mapped array of: The name of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].translations.map(x, x.name)
Example
Copy
Ask AI
[
"Newsletter Subscription"
]
Mapped array of: The description of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].translations.map(x, x.description)
Example
Copy
Ask AI
[
"Subscription to receive newsletters"
]
Mapped array of: The locale of the subscription type
CEL
Copy
Ask AI
$result_object_key[*].translations.map(x, x.locale)
Example
Copy
Ask AI
[
"en"
]
Describes the type of consent
CEL
Copy
Ask AI
$result_object_key[*].consent_type
Example
Copy
Ask AI
"opt_in"
The message types that this subscription supports - can contain ‘email’ or ‘sms_message’
CEL
Copy
Ask AI
$result_object_key[*].content_types
Example
Copy
Ask AI
[
"email",
"sms_message"
]
