how to avoid add attachments from inbound mail action

String
Kilo Sage

Hi Team ,

we have written inbound mail action as below :

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

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

 

when the user replies from the mail, we are updating the same in the work note,but along with that ...phone icon, Twitter icons also inserted into attachments(which is there in the user signature). how to avoid that those icons not to insert into attachments 

 

user reply as below:

Hi team,

Please update my comments 

Kind Regards,
ABC

Do you have a question? We can help.

find_real_file.png 08495 6010 01501 || find_real_file.png servicedesk@abc.com || find_real_file.png http://www.hello.com

Address: ABSDSs

Connect with us
find_real_file.png find_real_file.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@String 

refer below links for help/solution

Removing signature statement in inbound emails.

Stripping attachments from inbound emails

How to remove the signature in Inbound reply message?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Michael Jones -
Giga Sage

You can use email image filtering to prevent this: 

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

I hope this helps!

If this was helpful or correct, please be kind and remember to click appropriately!

Michael Jones - Proud member of the CloudPires team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Hi, I have followed the above links and changed the properties as well, but still no luck 

Please check the below attachments 

 

 

hi,

The above link you provide is great but it will avoid duplicate entries in attachments, but my requirement is totally to avoid all the icons(Facebook, Twitter ) and not to insert them in attachments.

Ankur Bawiskar
Tera Patron
Tera Patron

@String 

refer below links for help/solution

Removing signature statement in inbound emails.

Stripping attachments from inbound emails

How to remove the signature in Inbound reply message?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader