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

yes we set it to zero, in the below attachment 

Pranesh072
Mega Sage
Mega Sage

set it to 10  .   0 means it will ignore the filtering

okay i have make it as 10 ,still images are coming to attachments 

Strange it should work. I will check another way.

 

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/notification/concept/em...

 

meanwhile can you share your inbound action again?

below is my inbound action :

var messageContent = "[code]" + email.body_html ;
if (messageContent.indexOf("From") != -1) {
messageContent = messageContent.substring(0, messageContent.indexOf("From")).trim();
} else {
messageContent = messageContent.trim();
}


current.comments = messageContent;
current.update();