- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2021 02:13 AM
I have a requirement where we are resetting the password of user via Orchestration and incorporated a notification activity within workflow which is sending the credentials to the user. However once the RITM is closed the password is visible in activity section of the RITM which is a Security breach. Can someone help me how to hide this email from activity logs of the RITM so that it should not be visible to anyone or the second approach not a single email should be visible for the RITM for this catalog item.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2021 02:04 AM
Consider creating an event to trigger a notification. This instead of directly using the Notification utility in Workflow/Flow will have as an advantage that you can use the Email Access Restriction + in general this approach is far more better for maintainability. Maintaining notifications that are created using the Notification utility are a nightmare.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2021 02:21 AM
Hi,
You can remove the sent emails from the activity filter.
But remember this won't show any email then in the activity log.
you can try to hide specific email from the activity logs
this link has the solution but it uses DOM manipulation which is not recommended
Hiding specific emails from Activity
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-23-2021 09:19 PM
Thank you for marking my response as helpful.
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
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-20-2021 03:19 AM
Hi Ankur,
We have also having the same requirement to remove specific emails with subject survey from the activity log. We have tried this onload client script on incident table, but didn't work. Here its not executing the classname "h-card h-card_md h-card_comments" line. Are we missing anything here?
function onLoad() {
//---------to hide 'Inactivity warning Activity' for UI 15
var x = document.getElementsByClassName("activity_header");
var s = document.getElementsByClassName("activity_data");
var s1 = document.getElementsByClassName("activity_spacer");
for(var i=0;i<x.length;i++)
{
if(x[i].innerHTML.indexOf("survey") > -1)
{
//alert('hello');
x[i].style.display = 'none';
s[i].style.display = 'none';
s1[i].style.display = 'none';
}
}
//---------to hide 'Inactivity warning Activity' for UI 16
var x1 = document.getElementsByClassName("h-card h-card_md h-card_comments");
for(var j=0;j<x1.length;j++)
{
if(x1[j].innerHTML.indexOf("survey") > -1)
{
x1[j].style.display = 'none';
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2021 05:54 AM
Hi Ankur,
The DOM Manipulation didn't worked, do I have to do any modifications in the script?
I changed the IndexOf function("XYZ") and then entered XYZ in additional comments but it's not hiding.
However I went through below thread by
My only requirement is either we can hide the additional comments which came from user name Mid Server or email which comprise of password
https://community.servicenow.com/community?id=community_question&sys_id=91054f2ddbd8dbc01dcaf3231f961949