New button on Catalog task Related list on RITM form
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 03:34 AM - edited 06-19-2023 05:05 AM
Hi All,
I had implemented one logic to hide/show "New" button on the sc catalog task related list displayed on the RITM form in the Omit new condition script tab:
gs.addInfoMessage('here 1');
if (parent.cat_item == "791d2a7ff70b2010ec1ceeb74851e0ce" && parent.u_template) {
var codeList = gs.getProperty('new_button_tasks').split(',');
if (codeList.indexOf(parent.u_template.getDisplayValue()) > -1) {
answer = false;
} else
answer = true;
} else
answer = true;
I had implemented this in San Diego version with the old UI and it was working fine for admin and users with itil and sn_request_read and write roles.
After upgrade to Utah , if I write some info messages they are validated for admin users and if I impersonate with a user having itil and sn_request_read and write roles , the condition is not getting even evaluated no log messages shown on the form.
Thanks
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 06:27 AM
Yes User should have create access to the table.
You can close this thread by marking appropriate response as correct for others who may have a similar question in the future.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP