最近搜索
没有最近搜索

JAmes Testing
已加入2022年10月25日
·
最后活动2022年11月03日
关注
0
关注者
0
活动总数
6
投票
1
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 JAmes Testing
JAmes Testing 进行了评论,
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 创建了一个帖子,
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
评论