Pesquisas recentes


Sem pesquisas recentes

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



Publicado 12 de mar. de 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 comentário

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


Por favor, entrar para comentar.

Não encontrou o que estava procurando?

Nova publicação