How to save timer app data of my app in Zendesk

4 댓글

  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Nitesh,

    1. I'd suggest taking a look at using a modal to accomplish this.

    2. You can pass this information to a database if you'd like, though it may more scalable to just put it into localStorage.

    3.  The Apps framework is client side so only runs while the session is active. Due to that, you'd want to listen for events such as app.deactivated, then pass the current timer value to localStorage.

    Hope this helps,
    1
  • Nitesh Jaiswal

    Hi Eric,

    Thank you for your response and the articles you have shared, they are really helpful. I have started working on "localStorage" which was really helpful for points 2 and 3, thanks a lot. I did read about the modal and everything else related to it, however, I am sorry, there was a typo in my 1st question, the correct one is:

     

    1. How to get an alert or confirm window dialogue box whenever any button is clicked, for example: "Are you sure to start your first break? "Okay" or "Cancel" button within the browser while the app is running in the zendesk instance. (without leaving the zendesk instance) --So the "okay" button will start the break (if the agent is sure), if not sure then he/she would press "Cancel" button to make sure that break doesn't start.

    Also, how to make sure that if an agent has punched in any break, for example, then he/she wouldn't be allowed to even touch any ticket till the time he/she ends that break? In order words, agents should not be allowed to work on any ticket or the window of the ticket should be frozen till the time he doesn't end that break which was started, which mean he has to click on "End break" to resume working on tickets. 


    I look forward to hearing from you.

    1
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Nitesh,

    The confirmation window would still be best to be handled by a modal. I'd suggest having the "okay" button, start the break timer, but not dismiss the modal. As long as the modal is active, the agent won't be able to interact with the rest of Zendesk in that window. Then once their break is done, you can automatically dismiss the modal

      
    1
  • Nitesh Jaiswal

    Thank you so much, Eric, much appreciated. I will try that one.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공