How to remove water mark, signatures from inbound action script?

prasannakumard
Tera Guru

Hi Team,

We have configured "Approve" and "Reject" buttons on Approval request notification.

 

When Click on "Approve"/"Reject" it redirects to Outlook and approver gives comments and send mail to servicenow. 

Approve/Reject working as expected, but, I can't able to get the approval comments, which approver enter in email. It contains watermarks/signatures etc... instead of only comments. I'm using below script for the same.

 

Example Body: the body part of Approver email

 

Approver Comments: Approved. Please go Ahead.

Ref: xASDf46577869DSRT

Thanks & Regards,

Prasanna Kumar

 

I've tried the below codes in inbound action:

 

current.comments = email_body_text; OR current.comments = email_body;

OR

current.comments = email_body.approver_comments;

 

OR

current.comments = email_body_text.approver_comments;

 

The above ways comments contain watermarks/signatures etc... How can we exclude Water Marks and Signatures. 

 

In above scenario, My required out put is "Approved. Please go Ahead." in comments.

 

Please provide possible solutions.

Thanks & Regards,

Prasanna Kumar

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@prasannakumard 

you will require some string manipulation to remove signature

links already shared by other members.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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