Pesquisas recentes
Sem pesquisas recentes

Akshay Joshi
Entrou em 08 de dez. de 2024
·
Última atividade em 09 de dez. de 2024
Seguindo
0
Seguidores
0
Atividade total
3
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 Akshay Joshi
Akshay Joshi comentou,
I also tried using `ticket.latest_public_comment`
I get the error InvalidPathError: Path 'latest_public_comment' doesn't exist on node 'ticket'
Exibir comentário · Publicado 09 de dez. de 2024 · Akshay Joshi
0
Seguidores
0
Votos
0
Comentários
Akshay Joshi criou uma publicação,
I am trying to fetch the contents of the comments on a zendesk ticket using ZAF client in js but it keeps giving me “undefined”.
eg code -
```
const ticketData = await client.get(['ticket.status', 'currentUser.name', 'ticket.comments']);
const comments = ticketData['ticket.comments'];
const commentContent=comments[0].body;
```
I also tried fetching the comments using the API - GET /api/v2/tickets/{ticket_id}/comments, and then using .body on one of the comments and still the same issue.
When I do a curl i do see the JSON response but when using
commentContent=comments[0].body I get undefined.
Could you please help me understand how to fetch the contents of the comments?
Publicado 08 de dez. de 2024 · Akshay Joshi
0
Seguidores
2
Votos
2
Comentários