Recherches récentes


Pas de recherche récente

Unable to get and set values to a custom field via Zendesk App



Publication le 12 mars 2022

Following is my code snippet. 

 

const getAccountNameFunc = async () => {

const myData = client.get('ticket.customField:custom_field_4590824941204')
client.set('ticket.customField:custom_field_4731199018772', myData['ticket.customField:custom_field_4590824941204'])

}

Am I doing something wrong ? I think the client.get returns an object. But I am not able to use the data received to set the value of another field. 


0

1

1 commentaire

client.get returns a promise object, so you can't just set it to a variable https://developer.zendesk.com/api-reference/apps/apps-core-api/client_api/#clientgetpaths

0


Se connecter pour laisser un commentaire.

Vous ne trouvez pas ce que vous cherchez ?

Nouvelle publication