- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 07:59 AM
Hi Team,
when the user sends data throught mail,we are updating that respective details to the additional comments,but now user sending data in table format so when the inbound action script is not updating the table format info properly
So anyway to update the exact table format in additional comments which we received from the mail, Please guide me.
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2021 10:36 AM
var messageContent = email.body_html;
if (messageContent.indexOf("From") != -1) {
messageContent = messageContent.substring(0, messageContent.indexOf("From")).trim();
} else {
messageContent = messageContent.trim();
}
current.comments = "[CODE]"+ messageContent;
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 08:29 AM
Hi Pranesh,
I am using the above code to insert inbound mail action from user to incident and its work like a champ, but after sending that same comments to another user through notification we are getting [code] tag in the mail as below
Hi Alex,
This is in regards to INC00123
[code]
Admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 09:10 AM
You can use replace function
gs.print(gr.comments.getJournalEntry(1).replace('[code]',''));