Recent searches
No recent searches
how can I create an application that runs periodicall
Answered
Posted Sep 13, 2021
Hello, Zendesk developer team.
I have a question, how can I create an application that runs periodically without entering the ticket.?
Is there a tutorial?
1
5
5 comments
Zach Anthony
Hi David,
Depending on your use case you may be able to achieve what you're intending to do by using the Background location in Support. We don't have any specific tutorials on this but below is a quick example of some code you can use to perform an action in a background app periodically.
0
David Berumen
excellent it worked very well for me. You can give me the tutorial to create an app that is not in the tickets but in the top bar
0
Zach Anthony
Hey David,
We don't have any specific tutorials for developing an app for the top bar location, however it is very similar to the process you have followed for a sidebar app. You will just need to update your manifest file to refer to the top_bar location and check the objects and events available in this location in our documentation.
0
David Berumen
Thank you, you are helping me a lot. Finally, I would like to activate this listener when the page loads inside top_bar:
<script>
constant client = ZAFClient.init ();
periodic function const = () => {
console.log ('This is an action')
};
client.on ('app.registered', () => {
setInterval (periodicFunction, 10000);
});
</script>
Is there an event within the top bar that runs every time zendesk support loads ?.
0
Eric Nelson
Hey David,
You can just use a standard 'onload' to accomplish this. This MDN documentation may be useful to you.
Have a wonderful day!
Eric Nelson | Manager - Developer Advocacy
0