Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Enmanuel Payano
Beigetreten 16. Apr. 2021
·
Letzte Aktivität 27. Okt. 2021
Folge ich
0
Follower
0
Gesamtaktivitäten
2
Stimmen
0
Abonnement
1
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Enmanuel Payano
Enmanuel Payano hat einen Kommentar hinterlassen
Community-Kommentar 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!!
Kommentar anzeigen · Gepostet 13. Juni 2018 · Enmanuel Payano
0
Follower
0
Stimmen
0
Kommentare