Remove time stamp and user info from notification

Abinash
Kilo Contributor

Hi,

I want to remove the date & time stamp and user info from my email notification and only want the text message. I am doing it on comment field for RITM.

find_real_file.png

Kindly help me to fix this

Thanks in advance

1 ACCEPTED SOLUTION

Your mail script would look something like this. Note, this is not a drop-in solution. You should understand what it does and make appropriate modifications for your table, field, and desired results.



var comment = current.comments.getJournalEntry(1);


var dateRE = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.*\n/;


template.print(comment.replace(dateRE, ''));


View solution in original post

18 REPLIES 18

Hi Chuck,

 

Above does not work if user uses different date format. Also it does not work if comment contains 2 lines which has double linebreak.

 

Could you please suggest solution which is agnostice of user's datetime format and works if comment contains double line break?

 

Thanks,

Rushit

Can you please guide me how to hide only the user not the timestamp.

Hi,

I'd recommend creating your own post on the forums for that support as this is a 4 year old, closed post.

You'll get more support in a brand new question as more will see it and engage.

Please mark reply as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

vinothkumar
Tera Guru

For removing time stamp from the notification uncheck the properties glide.email.append.timezone and this will remove the timezone from your notification


That sounds like it only removes the timezone, not the date/time and user.