I want to obtain Subject picklist values on Task object using the UI-API.
I used the below API:
/services/data/v52.0/ui-api/object-info/Task/picklist-values/<record_type_id>
This returns various picklist values, except Subject.
I tried even below API:
/services/data/v52.0/ui-api/object-info/Task/picklist-values/<record_type_id>/Subject
I receive this error: Field Subject is not a picklist
However, I see Subject as a field under Task record types.
What is the consideration here? #User Interface API #Tasks #REST API #Salesforce Developer
Hi Sohan,
Here's my understanding,
This could probably be because of the type of Subject field. Task.Subject field is of data type= combobox and not picklist. Also, if you look at the field on page layout, it doesn't look like a picklist field, instead it looks like a lookup field.
Hence, Data Type of Subject field could be the reason due to which it's not appearing in the results.
If you've already sorted the issue, then please do let us know as well.