최근 검색


최근 검색 없음

JAmes Testing's Avatar

JAmes Testing

가입한 날짜: 2022년 10월 25일

·

마지막 활동: 2022년 11월 03일

팔로잉

0

팔로워

0

총 활동 수

6

투표

1

가입 플랜

1

활동 개요

님의 최근 활동 JAmes Testing

JAmes Testing님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

I've tried using the import end point to create the ticket. It doesn't error, but it also ignores the 'via' parameter

댓글 보기 · 2022년 11월 03일에 게시됨 · JAmes Testing

0

팔로워

0

투표 수

0

댓글


JAmes Testing님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi Erica,

That's right I'm only interested in setting these values on ticket creation. Thanks for looking into it

댓글 보기 · 2022년 11월 02일에 게시됨 · JAmes Testing

0

팔로워

0

투표 수

0

댓글


JAmes Testing님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Also noticed that if I set the 'via' object on the Ticket itself (rather than the ticket comment) it doesn't complain and appears to succeed just fine. 

However, it seems to ignore whatever value I've set. The channel always ends up as 'api'

댓글 보기 · 2022년 10월 25일에 게시됨 · JAmes Testing

0

팔로워

0

투표 수

0

댓글


JAmes Testing님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

I am trying to create tickets using the API but cannot seem to set the 'via' properties on ticket comments.

My use case is that I'm importing existing tickets from another product into Zendesk. These tickets were created automatically in response to an incoming email. So I think it makes sense to create a new ticket in Zendesk with the first comment containing the content of the email and having the 'via' properties on that comment contain the email info (e.g. from/to addresses & names)

The docs seem to suggest this is possible, but I am getting errors on ticket creation: `unpermitted_keys: ["ticket.comment.via.channel", "ticket.comment.via.source.to.address" ...]`

Example:

params = {:subject=>"test subject",
:requester_id=>12345,
:comment=> {
:html_body=> "test email body",
:author_id=>12345,
:via=> {
:channel=>"email",
:source=> {
:to=> {
:address=>"support@mycompany.com"
},
:from=> {
:address=>"customer@gmail.com",
:name=>"Customer name"}
}
},
:uploads=>[]},
:status=>"closed"} ZendeskAPI::Ticket.create!(client, params)


Any ideas on what I'm doing wrong?

2022년 10월 25일에 게시됨 · JAmes Testing

1

팔로워

4

투표 수

6

댓글