- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:29 PM
how to make the rejected comments visible to the requester in service portal as well as work notes?
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 01:58 AM
update line 8 as this
gr.comments = current.comments.getJournalEntry(1);
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
02-14-2022 11:33 PM
Business Rule also written but as mentioned in screen shot when ever the requester checks on his Ticket in Service Portal Rejection Comments are not visible
Approver View:
Requester View:
As it should show the comments right
in this screen shot can see that rejection comments are not showing to the requester in servicenow view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 01:50 AM
in business rule written as mentioned in the below screen shots
Script:
Business Rule also written but as mentioned in screen shot when ever the requester checks on his Ticket in Service Portal Rejection Comments are not visible
Approver View:
Requester View:
As it should show the comments right
in this screen shot can see that rejection comments are not showing to the requester in servicenow view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 01:58 AM
update line 8 as this
gr.comments = current.comments.getJournalEntry(1);
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
02-15-2022 02:41 AM
if we want to run on particular catalog item then what should we need to write the script in business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 02:43 AM
update as this
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id',current.sysapproval);
gr.addQuery('cat_item.name', 'Your Item Name Here');
gr.query();
if(gr.next()){
gr.comments = current.comments.getJournalEntry(1);
gr.update();
}
})(current, previous);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader