- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 11:36 PM
Hello All,
Below regular expression is not working for me,it still showing the info and time in notification mail for Incident record. Is there any changes/property i need to modify for this.
Thanks in advanced.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 01:03 AM
Below is working expression I am using in returning work note and comments as output without time stamp and user details who updated it. It must work for you as well.
current.comments.getJournalEntry(1).match(/\n.*/gm).join("\n");
Note: Please mark reply as correct if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:12 AM
thanks ! it works ..
could you please explain .match(/\n.*/gm).join("\n") ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2020 03:52 AM
Hi Deepak,
Thank you for sharing this, it was working great! We have since upgraded from Madrid to Orlando and the expression you shared has stopped working for us. Are you aware of anything that may have changed in Orlando that would have caused this to stop working?
Thanks,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2020 04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2021 03:15 AM
I was looking left and right and couldn't find an answer to my problem. Thanks for your input!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2021 09:44 PM
Hi Deepak,
I have also tried it, but it gives me only last comment as I want to print all the previous comments on work notes. That I have achieved by using (-1) instead of (1) but along with time stamp and user detail
current.comments.getJournalEntry(-1).match(/\n.*/gm).join("\n");
I have tried above line of code and getting the output which is shown in the above image. I hope my question will be easy to understand for you.
Thanks & Regards