Copy email body text to RITM and SC task when requester reply to the email.

SpartanW
Tera Contributor

Hello, everyone.

 

I created an inbound email for the Requested Item (sc_req_item) and it is working OK, but copying all the body language with the original email into the Additional comment and comment not adding to tasks.

 

Can we get only comment and add comments to relative TASK as well?

SpartanW_0-1750426708441.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SpartanW 

you are setting it in wrong manner.

it should be this in while loop

obj.comments = "Additional comments copied from the " + current.number + " : " + email.body_text;
obj.update();

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@SpartanW 

you are setting it in wrong manner.

it should be this in while loop

obj.comments = "Additional comments copied from the " + current.number + " : " + email.body_text;
obj.update();

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