最近の検索
最近の検索はありません

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
コメント