You need to sign in to do that
Don't have an account?

Apex Trigger prevent from repeating with Task
Hi My Friends,
I've a task Trigger, Its Service Class and another custom object related trigger ( That custom object will be a parent to Tasks)
When custom object field changes to 'Not Use' all the Tasks related to that custom object should be updated
I've a code like this:
CustomObjectTirgger-->TaskMainTrigger----> TaskserviceClass--> TaskServiceClassMethod
In this TaskServiceClassMethod i do check for a condition and i will update the customObject again. I am unable to handle this situation.. Has anyone experince with this situation?
I've a task Trigger, Its Service Class and another custom object related trigger ( That custom object will be a parent to Tasks)
When custom object field changes to 'Not Use' all the Tasks related to that custom object should be updated
I've a code like this:
CustomObjectTirgger-->TaskMainTrigger----> TaskserviceClass--> TaskServiceClassMethod
In this TaskServiceClassMethod i do check for a condition and i will update the customObject again. I am unable to handle this situation.. Has anyone experince with this situation?
Create a process builder for your custom object and set your criteria if the field value set to 'Not Use' and in the action select the update records and choose the task object and set the value.
For more details on Process builder check this Trailhead module - https://developer.salesforce.com/trailhead/business_process_automation/process_builder