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
OpsterOpster 

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.

 

thanks

mtbclimbermtbclimber

Check out the TaskStatus entity.