Recherches récentes


Pas de recherche récente

Enmanuel Payano's Avatar

Enmanuel Payano

Adhésion le 16 avr. 2021

·

Dernière activité le 27 oct. 2021

Suivis

0

Abonnés

0

Activité totale

2

Votes

0

Abonnement

1

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Enmanuel Payano

Enmanuel Payano a ajouté un commentaire,

Commentaire de la communauté 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!!

 

 

Afficher le commentaire · Publication le 13 juin 2018 · Enmanuel Payano

0

Abonnés

0

Votes

0

Commentaire