Parameters
Hide parameters
Hide parameters
ID
This field maps to the destination API id field.PII
This field maps to the destination API first_name field.PII
This field maps to the destination API last_name field.PII
This field maps to the destination API company field.This field maps to the destination API 
role field.PIIPIICopy
Ask AI
{
  "$result_object_key": {
    "created_by_user_id": "US123abc",
    "custom_fields": [
      {
        "key": "inbound-lead",
        "value": "value1"
      }
    ],
    "default_fields": {
      "company": "OpenPhone",
      "emails": [
        {
          "id": "email123",
          "name": "company email",
          "value": "abc@example.com"
        }
      ],
      "first_name": "John",
      "last_name": "Doe",
      "phone_numbers": [
        {
          "id": "phone123",
          "name": "company phone",
          "value": "+12345678901"
        }
      ],
      "role": "Sales"
    },
    "external_id": "664d0db69fcac7cf2e6ec",
    "id": "664d0db69fcac7cf2e6ec",
    "source": "public-api",
    "source_url": "https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
  }
}
Copy
Ask AI
{
  "$result_object_key": {
    "created_by_user_id": "ID of the user who created the contact",
    "custom_fields": {
      "key": "Key for the custom field",
      "value": "Values for the custom field"
    },
    "default_fields": {
      "company": "Company name of the contact",
      "emails": {
        "id": "Unique identifier for the email field",
        "name": "Name of the email field",
        "value": "Email address"
      },
      "first_name": "First name of the contact",
      "last_name": "Last name of the contact",
      "phone_numbers": {
        "id": "Unique identifier for the phone number field",
        "name": "Name of the phone number field",
        "value": "Phone number"
      },
      "role": "Role of the contact"
    },
    "external_id": "Unique identifier from an external system",
    "id": "Unique identifier for the contact",
    "source": "Source of the contact",
    "source_url": "Link to the contact in the source system"
  }
}
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
Unique identifier for the contact
CEL
Copy
Ask AI
$result_object_key.id
Example
Copy
Ask AI
"664d0db69fcac7cf2e6ec"
Default fields for the contact
CEL
Copy
Ask AI
$result_object_key.default_fields
Example
Copy
Ask AI
{
"company": "OpenPhone",
"emails": [
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
],
"first_name": "John",
"last_name": "Doe",
"phone_numbers": [
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
],
"role": "Sales"
}
First name of the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.first_name
Example
Copy
Ask AI
"John"
Last name of the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.last_name
Example
Copy
Ask AI
"Doe"
Company name of the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.company
Example
Copy
Ask AI
"OpenPhone"
List of email addresses for the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.emails
Example
Copy
Ask AI
[
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
]
Mapped array of: Unique identifier for the email field
CEL
Copy
Ask AI
$result_object_key.default_fields.emails.map(x, x.id)
Example
Copy
Ask AI
[
"email123"
]
Mapped array of: Name of the email field
CEL
Copy
Ask AI
$result_object_key.default_fields.emails.map(x, x.name)
Example
Copy
Ask AI
[
"company email"
]
Mapped array of: Email address
CEL
Copy
Ask AI
$result_object_key.default_fields.emails.map(x, x.value)
Example
Copy
Ask AI
[
"abc@example.com"
]
List of phone numbers for the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.phone_numbers
Example
Copy
Ask AI
[
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
]
Mapped array of: Unique identifier for the phone number field
CEL
Copy
Ask AI
$result_object_key.default_fields.phone_numbers.map(x, x.id)
Example
Copy
Ask AI
[
"phone123"
]
Mapped array of: Name of the phone number field
CEL
Copy
Ask AI
$result_object_key.default_fields.phone_numbers.map(x, x.name)
Example
Copy
Ask AI
[
"company phone"
]
Mapped array of: Phone number
CEL
Copy
Ask AI
$result_object_key.default_fields.phone_numbers.map(x, x.value)
Example
Copy
Ask AI
[
"+12345678901"
]
Role of the contact
CEL
Copy
Ask AI
$result_object_key.default_fields.role
Example
Copy
Ask AI
"Sales"
List of custom fields for the contact
CEL
Copy
Ask AI
$result_object_key.custom_fields
Example
Copy
Ask AI
[
{
"key": "inbound-lead",
"value": "value1"
}
]
Mapped array of: Key for the custom field
CEL
Copy
Ask AI
$result_object_key.custom_fields.map(x, x.key)
Example
Copy
Ask AI
[
"inbound-lead"
]
Mapped array of: Values for the custom field
CEL
Copy
Ask AI
$result_object_key.custom_fields.map(x, x.value)
Example
Copy
Ask AI
[
"value1"
]
ID of the user who created the contact
CEL
Copy
Ask AI
$result_object_key.created_by_user_id
Example
Copy
Ask AI
"US123abc"
Source of the contact
CEL
Copy
Ask AI
$result_object_key.source
Example
Copy
Ask AI
"public-api"
Link to the contact in the source system
CEL
Copy
Ask AI
$result_object_key.source_url
Example
Copy
Ask AI
"https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
Unique identifier from an external system
CEL
Copy
Ask AI
$result_object_key.external_id
Example
Copy
Ask AI
"664d0db69fcac7cf2e6ec"
