최근 검색
최근 검색 없음

Akshay Joshi
가입한 날짜: 2024년 12월 08일
·
마지막 활동: 2024년 12월 09일
팔로잉
0
팔로워
0
총 활동 수
3
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Akshay Joshi
Akshay Joshi님이 에 게시물을 만듦
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?
2024년 12월 08일에 게시됨 · Akshay Joshi
0
팔로워
2
투표 수
2
댓글