- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:06 AM
Whenever a record is open and perform below actions in custom agent workspace but not on console I need to get Info message / some popup message like
"RECORD IS UPDATED" if user updates a record on click of UPDATE button.
"RECORD IS DELETED" if user deletes a record on click of DELETE button.
If anyone knows provide some solution on this?
Solved! Go to Solution.
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:32 AM
hello
you need to write a workspace client script to get the alert when you click on those UI actions
You need to check workspace form button for the UPDATE AND DELETE ui actions and you need to write script like below
You need to check your table name before printing the alert because it might be GLOBAL UI action and this alert will come for all the tables where ever UPDATE OR DELETE IS clicked
function onClick(g_form) {
if(g_form.getTableName() =="your_table_back_end_name")
{
alert('Record udpated');
}
}
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:13 AM
Hi,
You can refer to this solution:https://community.servicenow.com/community?id=community_question&sys_id=21a5c6a0db2aa410da1999ead396...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:53 AM
thanks for replying but I already gone through the above link and I don't want confirmation message instead I need info message or alert message kind of thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:32 AM
hello
you need to write a workspace client script to get the alert when you click on those UI actions
You need to check workspace form button for the UPDATE AND DELETE ui actions and you need to write script like below
You need to check your table name before printing the alert because it might be GLOBAL UI action and this alert will come for all the tables where ever UPDATE OR DELETE IS clicked
function onClick(g_form) {
if(g_form.getTableName() =="your_table_back_end_name")
{
alert('Record udpated');
}
}
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:51 AM
thanks for replying but I already gone through this link but Confirmation message is already coming but I need info or alert message kind of thing