Invoke Notify events on APP through ZAF client | Community
Skip to main content

Invoke Notify events on APP through ZAF client

  • June 19, 2025
  • 1 reply
  • 0 views

I'm programming a small custom App that depending on what is happening should display some popup notifications to the user. I am using the ZAF client invoke and doing the following:

client.invoke('notify', 'somewarning, 'error', 30000);

This by itself does work. I did however have issues finding any documentation on how to handle this through https://developer.zendesk.com/api-reference/apps/apps-core-api/client_api/#clientinvokename--args and the pages linked to from there. I only found this code snippet in an old app someone else had already done in our company.

 

The following things I couldn't quite figure out:

  • for the 3rd parameter, through some trial and error I found that ‘error’, ‘notification’ and ‘warning’ are options that change the color of the popups title. Are there any additional options that have other behaviours?
  • For the text passed in the 2nd parameter, I'd like to do some formatting to make it look different. I have found that at least some simple HTML markup works, for example <b> and <i> tags and newline with <br>, but when I want to do other formatting it just never works.
    Is there a way to change font sizes and font colors? At minimum I would like to make the whole text red so a popup becomes more noticeable for the end user.

If I've just missed the relevant documentation for this I'd be happy to just be pointed in the right direction :)

1 reply

James57
  • October 12, 2025

Hi @bastian12 ,

Have you seen the documentation at https://developer.zendesk.com/api-reference/apps/apps-support-api/all_locations/#notify?  That should give some additional info.  I'm not familiar with the HTML portion or any documentation regarding the same.  If you find any let me know!  Hope this helps :D