update additional comments field with user mail reply

String
Kilo Sage

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.

1 ACCEPTED SOLUTION

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();

View solution in original post

31 REPLIES 31

sorry did not get ur point,"[code]" ..?

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();

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?

 

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

any  references  document available,this topic is interesting ,want to drive in more