Get Current Email Client Draft in UI Builder

nwilliam
Tera Contributor

I've enabled the Email Client in UI Builder so that I have the Email tab in the compose (activity stream) section.  When a user clicks that tab it automatically creates a draft (based on a template) and saves it to the sys_email_draft table.  Is there a way to find that record/sys_id from UI builder?  Right now I'm just referencing the latest draft by the current user on this record....but it would be most accurate if UI builder just told me what draft they were looking at.

2 REPLIES 2

Omkar Mone
Mega Sage

In the email draft table, when anyone creates on compose email in the workspace it ties it to the target record.

Please check the below screenshot from my PDI - 

 

OmkarMone_0-1736137692241.png

 

nwilliam
Tera Contributor

Yes it ties it to the record...but with how simple it is to create drafts there could be multiple from the same user on the same record...and I can't go by a timestamp because they could be looking at an older one.