Need Support for Updating UI/UX from onExternalEvent in Custom Freshdesk App

Hello Freshdesk Support Team

I am customizing a Freshdesk app for our business and need help with updating the UI/UX dynamically using the onExternalEvent event.

Issue:

  • I want app.js to listen for onExternalEvent and update the UI accordingly.
  • How can app.js receive and handle the onExternalEvent event triggered from server.js?
  • I couldn’t find updated documentation or best practices for implementing this.

Expected Outcome:

  • When onExternalEvent fires in server.js, app.js should update the UI dynamically.

Any guidance or sample implementation would be highly appreciated. Thank you for your support!

Hi @Nguy_n_Nam,

Welcome to the community! :tada:

The backend and frontend in a Freshdesk app are separate and can’t communicate directly in this way.

However, one possible approach is to store relevant data in a database when the external event is triggered in the backend. The frontend can then periodically check for this data and update the UI accordingly.

This is a quick workaround that you can try while exploring more efficient solutions. Hope this helps!

Thank you!

1 Like