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
AJFAJF 

trigger on task after hubspot sync

I have an after insert trigger on SFDC tasks that fires after a new task is created by the Hubspot activity sync feature (sync direction is HS > SFDC only). If the task is created in SFDC by the hubspot integration user, then the trigger should set a custom activity field on task called Contact Type to "Sales". The trigger does work but is inconsistent and I can't figure out why. I changed the logic to use @future but some tasks still don't get updated. Has anyone worked with tasks synced from Hubspot and found this type of issue? Any insight would be appreciated.