StyloDocs
Workflow blocks

Set Lookup Field

Set a lookup relationship field on a ticket to a custom object record by ID, name, or external ID

View as Markdown

zendesk/set-lookup-field — Set a lookup relationship field on a ticket to a custom object record by ID, name, or external ID.

Where it appears

The Set Lookup Field block lives in the Integrations group of the Workflow Builder. Connect the Zendesk integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
ticketIdtext (supports references)YesNumeric Zendesk ticket ID whose lookup field should be set. Use a literal number or <StepName.field> to reference an ID from a previous step.
fieldIdtext (supports references)YesNumeric ID of the lookup-relationship ticket field to set. Use a literal ID or <StepName.field>.
lookupValuetext (supports references)YesIdentifies the custom object record to link: a record ID, or name:VALUE / external_id:VALUE to match by name or external ID. Accepts literal text or <StepName.field>.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Set Lookup Field.field>.

NameTypeDescription
successbooleanSuccess status
ticketjsonUpdated ticket (object — fields: id, subject, description, status, priority, type, tags, requester_id, assignee_id, group_id, custom_fields, created_at, updated_at)
errorstringError message if failed

Example

A minimal configuration for this block:

{
  "type": "zendesk/set-lookup-field",
  "config": {
    "ticketId": "<PreviousStep.field>",
    "fieldId": "<PreviousStep.field>",
    "lookupValue": "<PreviousStep.field>"
  }
}

Limits and failure modes

  • Requires a connected Zendesk integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (ticketId, fieldId, lookupValue) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page