최근 검색


최근 검색 없음

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

댓글