Recent searches


No recent searches

Submit ticket via ZAF



Posted Oct 25, 2022

Hello,

Is it possible to submit a ticket via ZAF methods (e.g. invoke)?

The use case would be to programmatically submit a ticket after calling `client.invoke('macro', ...)`, so that 1) a macro is applied to the ticket and 2) the ticket is submitted.

The reason `client.request` to update ticket API won't work as a workaround is because, during the update API call, the `AgentMacroReference` ticket audit event won't be created. It is created only when a macro is applied, and the submit ticket button is clicked manually by an agent.


0

2

2 comments

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey, Aliaksei!
 
I've just done some testing on my end and it appears that the 'AgentMacroReference" ticket audit event is created when you add the macro_id property to the body of your request when creating the comment via the ticket API. Can you try that out on your end and let me know if you're seeing the same behavior?
 
Let me know if you have any questions!
 
Tipene

1


Thanks Tipene, that works.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post