Recherches récentes


Pas de recherche récente

Akshay Joshi's Avatar

Akshay Joshi

Adhésion le 08 déc. 2024

·

Dernière activité le 09 déc. 2024

Suivis

0

Abonnés

0

Activité totale

3

Votes

0

Abonnement

1

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Akshay Joshi

Akshay Joshi a ajouté un commentaire,

Commentaire de la communauté Developer - Zendesk Apps Framework (ZAF)

I also tried using `ticket.latest_public_comment`

 

I get the error InvalidPathError: Path 'latest_public_comment' doesn't exist on node 'ticket'

 

Afficher le commentaire · Publication le 09 déc. 2024 · Akshay Joshi

0

Abonnés

0

Votes

0

Commentaire


Akshay Joshi a créé une publication,

Publication Developer - Zendesk Apps Framework (ZAF)

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?

Publication le 08 déc. 2024 · Akshay Joshi

0

Abonnés

2

Votes

2

Commentaires