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
TheresaAndersonTheresaAnderson 

Trigger is creating 2 tasks rather than 1

I have a trigger that is executing 2 tasks rather than 1.  I was informed by Salesforce, the problem is related to the workflow rules; meaning the trigger is being activated twice.

 

What should I be doing differently to have the trigger executed once?

kiranmutturukiranmutturu

put a flag field in the database object and check the field along with the workflow where you want the trigger to be execute..if not put a condition not to execute the trigger code.....