最近の検索


最近の検索はありません

Enmanuel Payano's Avatar

Enmanuel Payano

参加日2021年4月16日

·

前回のアクティビティ2021年10月27日

フォロー中

0

フォロワー

0

合計アクティビティ

2

投票

0

サブスクリプション

1

アクティビティの概要

さんの最近のアクティビティ Enmanuel Payano

Enmanuel Payanoさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Apologies if this is a late answer, but this method works for me:

client.get('ticketFields').then(function(data) {

// Get all fields to query against
var fields = data["ticketFields"];
var CustomFieldName;

// Iterate through each field
for (var field in fields) {

// Find the one that match
if (fields[field].label == "Your Custom Field Name") {
// console.log(fields[field].label);
// console.log(fields[field].name);
// Grab your custom field ID
CustomFieldName = fields[field].name;
}
}

// Do some custom field magic for your Zendesk
client.set('ticket.customField:' + CustomFieldName, DataForYourField).then(function(data) {
// https://SomeDomain.zendesk.com/api/v2/ticket_fields
console.log(data); // { 'ticket.subject': 'Printer Overheating Incident' }
});

});

Happy Coding!!

 

 

コメントを表示 · 投稿日時:2018年6月13日 · Enmanuel Payano

0

フォロワー

0

投票

0

コメント