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.

UI Action Event – Info Message Not Displaying After Successful Integration Response

Alisabir
Tera Contributor

Hi All,

I’m facing an issue and could use some help.
I have a UI Action that triggers an event, and that event has a Script Action which calls a function in my Script Include for an integration. What I want is: when the script returns a successful response (HTTP 200), the form should display an info message indicating that the integration was successful.

I tried adding the info message inside the Script Action, but it doesn’t display on the form—even though the event is triggering correctly.

 

Below is my code for reference

UI action script

current.update();
gs.eventQueue('x_azer_cpq.erp.project.lines', current);
gs.addInfoMessage('Sending Project Line Items to ERP....');
action.setRedirectURL(current);

Script action 
new x_azer_cpq.CPQ_IntegrationUtils().sendProjectLineItemsToERP(current);


0 REPLIES 0