Pesquisas recentes
Sem pesquisas recentes

Enmanuel Payano
Entrou em 16 de abr. de 2021
·
Última atividade em 27 de out. de 2021
Seguindo
0
Seguidores
0
Atividade total
2
Votos
0
Assinatura
1
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Enmanuel Payano
Enmanuel Payano comentou,
Comentário na comunidade 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!!
Exibir comentário · Publicado 13 de jun. de 2018 · Enmanuel Payano
0
Seguidores
0
Votos
0
Comentários