+ Start a Discussion

How to determine the (default) Picklist value for setting a Task to 'Completed' IsClosed=true;

Does anyone know a way to determine the default status picklist value for marking a Task as 'Completed' IsClosed=true?


I am asking because I need a way to find what to close a task to if the org has been customized and the picklist values have been changed, i.e. 'Completed' is no longer one of the options.  So I do not want to hard code my trigger to use a value that may not be in use.




Check out the TaskStatus entity.