The CreatorCon Call for Content is officially open! Get started here.

Attachment not getting added in SC task record through Email reply

Ashwin Perumal1
Tera Contributor

Hi All,
When a user replies to an email sent from the SC Task and the user is adding attachment on their response the attachment is not getting added to SC Task but I could see the response email body visible to me in the activity stream of the SC Task. How could I solve the issue such that attachment is also added to the SC Task record.

Can someone pls help on this.. Thanks in Advance.

1 ACCEPTED SOLUTION

Hi @Ashwin Perumal1,

 

When you go to sys_email list, you can find the message which was received.
In the Email log related list, you can find how it was processed.

 

PeterBodelier_0-1696408600610.png

 

You could use a script like below to get the emails attached:

var sysAttach = new GlideSysAttachment();   
var emailSysId = sys_email.getUniqueValue(); 
if (emailSysId) { 
   var sysEmailAttachments = sysAttach.getAttachments("sys_email", emailSysId); 
   while (sysEmailAttachments.next()) { 
         sysEmailAttachments.setValue("table_name", current.getTableName()); 
         sysEmailAttachments.setValue("table_sys_id", current.getUniqueValue()); 
         sysEmailAttachments.update(); 
   } 
} 

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

5 REPLIES 5

I know it has been a while but did you ever figure this out? I am having the same issue.