Documentation Index
Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.PIIPIIHI ID PII
This field maps to the destination API customFields field.{
"$result_object_key": {
"created_by_user_id": "US123abc",
"custom_fields": [
{
"key": "inbound-lead",
"typed_value": "value1",
"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"
}
}
{
"$result_object_key": {
"created_by_user_id": "ID of the user who created the contact",
"custom_fields": {
"key": "Key for the custom field",
"typed_value": {
"bool_value": null,
"list_value": {
"values": null
},
"null_value": null,
"number_value": null,
"string_value": null,
"struct_value": null
},
"value": "Values for the custom field, converted to a list of strings"
},
"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
$result_object_key.id
Example
"664d0db69fcac7cf2e6ec"
Default fields for the contact
CEL
$result_object_key.default_fields
Example
{
"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
$result_object_key.default_fields.first_name
Example
"John"
Last name of the contact
CEL
$result_object_key.default_fields.last_name
Example
"Doe"
Company name of the contact
CEL
$result_object_key.default_fields.company
Example
"OpenPhone"
List of email addresses for the contact
CEL
$result_object_key.default_fields.emails
Example
[
{
"id": "email123",
"name": "company email",
"value": "abc@example.com"
}
]
Mapped array of: Unique identifier for the email field
CEL
$result_object_key.default_fields.emails.map(x, x.id)
Example
[
"email123"
]
Mapped array of: Name of the email field
CEL
$result_object_key.default_fields.emails.map(x, x.name)
Example
[
"company email"
]
Mapped array of: Email address
CEL
$result_object_key.default_fields.emails.map(x, x.value)
Example
[
"abc@example.com"
]
List of phone numbers for the contact
CEL
$result_object_key.default_fields.phone_numbers
Example
[
{
"id": "phone123",
"name": "company phone",
"value": "+12345678901"
}
]
Mapped array of: Unique identifier for the phone number field
CEL
$result_object_key.default_fields.phone_numbers.map(x, x.id)
Example
[
"phone123"
]
Mapped array of: Name of the phone number field
CEL
$result_object_key.default_fields.phone_numbers.map(x, x.name)
Example
[
"company phone"
]
Mapped array of: Phone number
CEL
$result_object_key.default_fields.phone_numbers.map(x, x.value)
Example
[
"+12345678901"
]
Role of the contact
CEL
$result_object_key.default_fields.role
Example
"Sales"
List of custom fields for the contact
CEL
$result_object_key.custom_fields
Example
[
{
"key": "inbound-lead",
"typed_value": "value1",
"value": "value1"
}
]
Mapped array of: Key for the custom field
CEL
$result_object_key.custom_fields.map(x, x.key)
Example
[
"inbound-lead"
]
Mapped array of: Values for the custom field, converted to a list of strings
CEL
$result_object_key.custom_fields.map(x, x.value)
Example
[
"value1"
]
Mapped array of: Typed value for the custom field
CEL
$result_object_key.custom_fields.map(x, x.typed_value)
Example
[
"value1"
]
Mapped array of: Typed value for the custom field
CEL
typed_value.null_value
ID of the user who created the contact
CEL
$result_object_key.created_by_user_id
Example
"US123abc"
Source of the contact
CEL
$result_object_key.source
Example
"public-api"
Link to the contact in the source system
CEL
$result_object_key.source_url
Example
"https://openphone.co/contacts/664d0db69fcac7cf2e6ec"
Unique identifier from an external system
CEL
$result_object_key.external_id
Example
"664d0db69fcac7cf2e6ec"
