- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 02:50 AM
I wanted to remove delete option on standard change where CTASKS are created already.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 05:57 AM
Hi Kalyani,
I would recommend using ACL approach so that no new UI action is to be created
1) visit this ACL
URL: https://instanceName.service-now.com/nav_to.do?uri=sys_security_acl.do?sys_id=80dfc5fec0a801664e82539cfb7a0bfb
2) advanced checkbox as true
3) script below
answer = getValue();
function getValue(){
if(current.change_request.type == 'standard')
return false;
else
return true;
}
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
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
06-16-2020 02:59 AM
Hello Kalyani,
This is driven via Delete UI action conditions. You can override the global UI action and then handle the logic via condition field (i.e make a call to script include to check if CTASKS are already created or not. Depending on the output you can show or hide the button).
- Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 03:01 AM
Hi Kalyani,
Do you want only for standard change the Delete should be hidden?
When you want to hide the Delete? When there are no change tasks for standard change etc
If you don't want Delete Action to be visible then update OOB table level Delete ACL
In advanced script section use this
answer = false;
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
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
06-16-2020 04:00 AM