I have two triggers:
- First trigger fires on lead update. It creates a task when lead is converted and links the created task to the contact resulting from the conversion.
- Second trigger fires on Task update. It closes all opportunities related to the account of the contact linked in the task.
The problem is that the second trigger must only do its job on tasks created by the first trigger, not tasks created through the UI or any other how.
How can I detect in the second trigger that a task was created by the first trigger, knowing that I don't have enough permissions to :
- add custom fields to the task object
- create custom objects that can refer to the task object
Any help is of tremendously appreciated.