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
Sourav PSourav P 

Not to duplicate the same open task in a particular object

Hi,
I have created a task on the object Contract. There are same task types with different criterias, what i want is that if one of the same task type has a status as " Open", in the object Contract, It shouldnt generate another same type of task. I have " Type" as a picklist in the task.
May be for that it seems i need a task type counter field in the contract object ( how to do that ? ) which i can use in the PB logic or how to do that in any other way ? Thanks
Best Answer chosen by Sourav P
Gokula KrishnanGokula Krishnan
Hi Sourav,

You need to use Trigger to achieve this.
 
trigger TaskTrigger on Task (before insert) {
    
    // Your Logics here

}

Thanks,

If it helps you, please mark is as best answer, so it will be helpful for other developers.

All Answers

Gokula KrishnanGokula Krishnan
Hi Sourav,

You need to use Trigger to achieve this.
 
trigger TaskTrigger on Task (before insert) {
    
    // Your Logics here

}

Thanks,

If it helps you, please mark is as best answer, so it will be helpful for other developers.
This was selected as the best answer
Sourav PSourav P
Hi Gokula, Thanks, let me try this