Recent searches


No recent searches

How do I trigger the save event in an App



Posted Jan 10, 2022

I am writing a custom app and want to save the data afterward in the ticket.

How do I trigger the save event aka the "submit as <status>" event from within the app?


0

3

3 comments

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hi Daniel,

You'd want to use the update ticket endpoint utilizing the client.request method offered by ZAF.

Hope this helps!

0


hi Eric Nelson , how about if I made changes to the ticket, for example, using 

zafclient.invoke('ticket.tags.add', "cit");

 

In this case the ticket will be ready to submit the changes by the user, but I'd like to do it for the user.

Is this possible to do using a zaf client invoke (or any other method really), instead of making an update request via api?

 

Also, what happens if the user is writting a comment and we update the ticket via the API?

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey David,

The ZAF API doesn’t currently have methods or actions that facilitate submitting ticket changes. For example, while you can update the ticket status via ZAF ticket properties, this change still needs to be submitted in the UI. Your best bet will be using the client.request method as Eric mentioned above. Updates made via the API won’t effect any ongoing comments in the ticket editor, you’ll just see the specified changes reflected in the UI.

I hope this helps!

Tipene

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post