- 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
‎01-11-2021 10:30 AM
sorry did not get ur point,"[code]" ..?
- 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
‎01-11-2021 10:40 AM
it works..!!!! thanks, pranesh for ur help
can u please explain to me the "[CODE]", what is this syntax means, any inbuild syntax in service now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:46 AM
So when you trying to update additonal comments or worknotes, its a tag for system to identify that it have to run it.
Same thing happens when you try to attach Kb article to a ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:48 AM
any references document available,this topic is interesting ,want to drive in more