zendesk.support.ticket.search

This component searches for tickets in Zendesk Support based on a query.

Here is an example of a flow that searches for tickets based on the user's
ID and displays the IDs of all the tickets:

triggers:
  - keyword: zendesk_support_ticket_search

steps:
  - type: meya.zendesk.support.component.user.show
    integration: integration.zendesk.support
  - type: meya.zendesk.support.component.ticket.search
    integration: integration.zendesk.support
    query:
      - requester_id:(@ flow.result.id )
  - ask: Your tickets are (@ flow.result | map(attribute="id") | join(", ") )

Element details

type: meya.zendesk.support.component.ticket.search
class: ZendeskSupportTicketSearchComponent
path: /meya/zendesk/support/component/ticket/search.py
signature: -

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
integrationThe reference path to the Zendesk Support integration file. See the integration reference paths documentation for more information.ZendeskSupportIntegrationRef
contextSend context data with this component's event.{}
dict
sensitivetruebool
triggersActivate these dynamic triggers when the component runs. Check the component triggers guide for more info.[]list
queryThe query to search for tickets. This must be a valid search query based on the Zendesk search syntax. See the Zendesk search reference guide for more information.list
sort_byThe field to sort the results by. This can be one of updated_at, created_at, priority, status, or ticket_type. Defaults to sorting by relevance.nullstr
sort_orderThe sort order of the results. This can be asc or desc. Defaults to desc.nullZendeskSupportSortOrder

Usage reference

Basic

triggers:
  - keyword: meya.zendesk.support.component.ticket.search
steps:
  - type: meya.zendesk.support.component.ticket.search
    integration: integration.zendesk_support
    query:
      - STRING

Full

triggers:
  - keyword: meya.zendesk.support.component.ticket.search
steps:
  - type: meya.zendesk.support.component.ticket.search
    spec:
      type: STRING
      data:
        STRING: ANY
      timeout: 123
      trigger_when: ANY
    integration: integration.zendesk_support
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    query:
      - STRING
    sort_by: STRING
    sort_order: asc|desc