Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Akshay Joshi
Beigetreten 08. Dez. 2024
·
Letzte Aktivität 09. Dez. 2024
Folge ich
0
Follower
0
Gesamtaktivitäten
3
Stimmen
0
Abonnement
1
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Akshay Joshi
Akshay Joshi hat einen Kommentar hinterlassen
I also tried using `ticket.latest_public_comment`
I get the error InvalidPathError: Path 'latest_public_comment' doesn't exist on node 'ticket'
Kommentar anzeigen · Gepostet 09. Dez. 2024 · Akshay Joshi
0
Follower
0
Stimmen
0
Kommentare
Akshay Joshi hat einen Post erstellt
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?
Gepostet 08. Dez. 2024 · Akshay Joshi
0
Follower
2
Stimmen
2
Kommentare