Emails which are sent are not added to Activity log for Interaction Table

soumyadaggula
Tera Contributor

Hello Team, 
Am sending emails through UI action on Interaction Table, and I want the email which is sent to the user should be added in Activity log. 
I have added 'Emails-autogenerated' and 'Emails-correspondence' to filter activity, but still I do not see emails which are sent are getting added unlike for Incident table.

Kindly 
help.

9 REPLIES 9

Maik Skoddow
Tera Patron
Tera Patron

Hi @soumyadaggula 

Did you allow the right roles at system property glide.ui.activity.email_roles?

Did you check that the status of emails (table sys_email) is "sent"?

Are the email records connected to the Interaction records?

Maik

soumyadaggula
Tera Contributor

Hello Maik ,
glide.ui.activity.email_roles
I have checked added by default Itil role is there 
sys_email
I have manually updated the type to sent to test ( this worked for incident table ) 
however, when I open the email (for interaction table), I see target is blank.

soumyadaggula_0-1706251655980.png

 

 

Hi

yes, the missing "Target" is the reason why you cannot find the email in the activity stream of the Interaction table.

Can you please share some screenshots of how exactly you are writing the emails?

Maik

this the script which I used

var
mail = new GlideEmailOutbound();
mail.addRecipient(current.opened_for.email);
mail.setSubject('Your verification code');
mail.setBody('Your verification code is ' + code + '  ' + 'for interaction record'+ ' '+ current.number);
mail.save();

action.setRedirectURL(current);