- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2021 12:36 AM
i tried:
gs.clearOutputMessages();
and
gs.clearMessages();
but it does not work
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2021 12:45 AM
Hi,
Clear/hide messages will work only on the client side.
or you can try with the flush message on the server-side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2021 12:02 AM
No, i added the Message in the UI Action (as mentioned) BR was only an example for the Serverside Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2021 12:10 AM
can you share your UI action script and UI action configuration image?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2021 12:14 AM
If the UI action is server side then the script will run for all the records selected
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2021 02:13 AM
Ankur 😉 last try 🙂
if i select 11 Approvals.
the ui actions runs for every single Record..
So it shows 11 times the Error Message, because for every Record the UI checks if more than 10 are selected.
I only want to know, how to clear the Messeages out of a server side script.
So that the last Record, executed and checked by the ui action should show the Message. because all other Messages are cleared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2021 02:34 AM
Hi,
can you try this
gs.flushMessages();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader