How to show info message in native UI and Workspace in servicenow

ShaikSaiduN
Tera Contributor

Hi,

 

when i click create request button in incident,it opens one dailog box and fill related information about request and submit.After submit i have to show info message(Request has been created successfully) in both native view and workspace.In UI Page i'm adding g_form.addInfoMessage, it  is working in native view but not in workspace.how to acheive in workspace as well? Please help me.

8 REPLIES 8

Medi C
Giga Sage

Hi @ShaikSaiduN@Dr Atul G- LNG,

 

Unfortunately UI pages are not supported on Workspaces.

 

Are you using Agent Workspace? Or Custom Workspace using UI builder?


Thanks & Best regards,
Medi

The below image is from native UI. Your saying that,like this below we can't acheive in workspace?If not,then how can we acheive this?Please help me.

ShaikSaiduN_0-1741948433066.png

 

laurentrimble
ServiceNow Employee

Hello, there is a UI Action called "Create Request" for the Workspace. It's in the ITSM Workspace application scope. You can add the g_form.addInfoMessage('Task created successfully'); under the Workspace Client Script box. I hope this helps!

Rathna Chengalv
Tera Contributor

If addinfomessage is added through a business rule - its not getting displayed record component in workspaces -- any suggestions how to render such info messages in form/ record page