I have a requirement where I have to get Default
Task Status and Closed Status.
String defaultTaskStatus; // variable which contains Default Status Set<String> taskClosedStatusSet; // Set of Closed Status
I checked In Task object there is no field call
However, there is a Standard Object called
TaskStatus, which contains above 2 variable.
So, how we will get all required data by using 2 standard objects