function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas Miller 18Thomas Miller 18 

Global Email Action

Recently I found out that when an email is sent from the global action only an EmailMessage record is created but no task record.
As our org heavily works with emailmessages and associated task records I tray to fill this gap using an automation. However to do this I would need to find out whether an EmailMessage record I see in a flow or trigger is coming from a global action or not. 
Is there a way to find out?
(Note that looking at ActivityId is not enough because in some cases Emailmessage and Task records are created in parallel and asynchronously.)
VinayVinay (Salesforce Developers) 
Hi Thomas,

Can you elloborate more on this and add screenshot?

Thanks,
Thomas Miller 18Thomas Miller 18
Hello Vinay a screenshot would not make too much sense. Here is the way to reproduce it: 1. Send an email from a global action "send email" 2. Find the email you sent and it's I'd 3. Open the email message with workbench 4. See that ActivityId is null Thomas