最近搜索


没有最近搜索

Interrupt ticket submit

已回答


已于 2022年8月17日 发布

Hi,

I’m trying to figure out a way to interrupt the ticket submission until the agent fills out a few fields in a modal, is that possible somehow?

The modal opens when a ticket is submitted as solved, and supposed to interrupt the submitting until the agent clicks a submit button in the modal. I’ve tried using save hook events (https://developer.zendesk.com/api-reference/apps/apps-support-api/ticket_sidebar/#ticket-save-hook-events), but can’t quite figure out how to make it work.

Any hints would be much appreciated!


0

5

5 条评论

Hey Thomas Busse,

What have you tried so far (how does your code look)?

 

Unofficial discord community of likeminded developers:
https://discord.gg/EHVRdSVDc4

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Thomas,

You can see how to do this here.

Hope this helps!

0


Hi Oleg and Eric,

Thanks for responding. This is the code I’m using:

client.on('ticket.save', async () => {
client.context().then(create_modal); //this creates the modal
returnPromise.reject(false);
});
This immediately fires the “his app has prevented the submission of the ticket...”-message - how do I prevent this and instead continue the saving process after the fields in the modal have been filled out and the submit button was pressed there?

0


I’m still stuck with this, if anyone has an idea or even sample code that would be much appreciated!

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey Thomas Busse,

Here's a link to an example app that you might find helpful:

https://github.com/zendesk/demo_ticket_submission_and_save_events

Feel free to reach out with any questions!

Tipene

0


请先登录再写评论。

找不到所需的内容?

新建帖子