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
Rakesh K 60Rakesh K 60 

Lightning Sync apex trigger

Hi there,

can we write a trigger on an event created using lightning Sync. 

here is my requirement.

  • create a calendar event in google calendar.
  • when that event is available I Salesforce, I want to write a trigger that will create a task.
currently my setup is working fine. I'm able to create even in GCal and see it in Salesforce events. But the url is long alpha numerically character. I'm unable to understand how to write a trigger on it. Also when I queried the event object using 
Select Id, subject from Event
The gCal event is not shown up. Also tried querying the ActivityHistory object, even that's negative. I'm able to see only the events created from platform. Please let me know if this is a product limitation or of any blind spot that I'm missing.

Thanks
 

 

Best Answer chosen by Rakesh K 60
Rakesh K 60Rakesh K 60
If someone else is facing this issue, This is working as expected, the only catch is, it is taking ~20sec to get convered as standard event record.