最近搜索


没有最近搜索

Webhook - Copy a field on the same ticket

已回答


已于 2022年3月22日 发布

Hi, 

I hope you can help. 

We have a ticket field that populates upcoming event names for end users to search. However, the values get overwritten once the event has passed. So I would like to know how I can create a webhook that will copy the value of field A into field B as text field on the same ticket.   


0

1

1 条评论

image avatar

Dane

Zendesk Engineering

Hi James Byrne,

You can use the endpoint below to create a webhook.

https://YOURSUBDOMAIN.zendesk.com/api/v2/tickets/{{ticket.id}}.json

Make sure to select PUT as your Request Method.

Once done, you'll need to create a trigger that utilizes custom field placeholders as your payload.

{
  "ticket": {
    "custom_fields": [
            {
                "id": <Field B ID>,
                "value": "{{ticket.ticket_field_<Field A ID>}}
            }
            ]
    }
}

Here is an example of a simple trigger.

 

0


请先登录再写评论。

找不到所需的内容?

新建帖子