How to hide specific Email from activity logs

Meghant Rai
Kilo Guru

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.

@Ankur Bawiskar : Your help would be highly appreciated.

1 ACCEPTED SOLUTION

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

LinkedIn

View solution in original post

21 REPLIES 21

@Meghant Rai 

what is the DOM manipulation you tried?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

function onLoad() {
//Type appropriate comment here, and begin script below
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("Meghant") > -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("Meghant") > -1)
{
x1[j].style.display = 'none';
}
}
}

Hi,

so using this are you not able to locate the html element for that string which contains password

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Yes Ankur

Unless you find the HTML element you won't be able to hide it using DOM

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader