Not able to approve via email approval

Hafsa1
Mega Sage

I'm getting below error while I'm approving case via email. I checked the subject and body for watermark but both seems to be correct. What else could be the reason?

 

The approval for "Procurement: " failed because the approval response email was formatted incorrectly. Click the "Approve" or "Reject" button in the original email.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Hafsa1 

is that an OOB inbound action or a custom one?

Is the email subject containing the work approve or reject correctly?

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

we are using custom inbound action and yes subject contains "approve"

 

if ((email.subject.indexOf("approve")) >= 0) {
    current.comments = "reply from: " + email.from + "\n\n" + email.body_text;
    current.state = 'approve';
    current.update();

@Hafsa1 

is your inbound action getting processed?

did it trigger?

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

@Ankur Bawiskar yes it is processed and working correctly. But sending email back to user with that error. Giving wrong error to user.

Hafsa1_0-1743067984720.png