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

thanks mate.!

Welcome String Str 😉

hi @Pranesh 

when I am using the above code, it's working fine but along with signature icons also inserted in attachments (Facebook icon, phone icons), can you please help me to avoid that signature attachment.

We have set properties as below attachments 

In your case, you can use AttachNone in your property

  • AttachTarget - Associate the image to the target record. The image is visible in the activity formatter and in the attachment to the target record.
  • AttachEmail - Attach the image to the email record. The image is not visible in the activity formatter of the target record nor in the attachment to the target record.
  • AttachNone - Do not attach the image to a record. You can select this option to attach the image manually at a later time.