Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Custom UI Component in Service Portal not updating after GlideAjax call

HilseH
Kilo Contributor

Hi all,
I'm building a custom UI component in the Service Portal that uses GlideAjax to fetch some data (e.g., a list of related records for the current user). The initial data load works fine, but when I trigger an update (e.g., after performing an action inside the component), the data doesn't seem to refresh. It looks like the response is being cached or Angular isn't re-rendering the updated data.

I've tried using $scope.$apply() and even wrapping the call in $timeout, but the UI still shows the old data unless I manually refresh the whole page.

Has anyone experienced this? Is there a known issue with caching GlideAjax responses in Service Portal or something special needed to force a proper re-render of the component?

Thanks in advance!

0 REPLIES 0