Passing the custom field value is possible through the “Create a Task API“.
The Custom Field can be added through the UI by enabling the Settings (Check mark “Enable Custom Field“) as shown in the below screenshot.
Use the below JSON format to add the custom value through “Create a Task API“, for example I have mentioned Color as “Custom Label” and different colors as “Custom Values” as shown below (JSON format mentioned)
JSON DATA::
{
“Name”: “My-Task: heye zkjflkds “,
“Description”: “dfgdfgdfgdf”,
“RelatedEntity”: 1,
“RelatedEntityId”: “3e5a0ae4-1e5e-11e6-a1f3-22000aa5088d”,
“DueDate”: “2019-10-10 10:00:00”,
“Reminder”: 15,
“NotifyBy”: “1100”,
“OwnerId”: “23de6273-3cda-11e5-b982-22000aa68b6f”,
“TaskType”: {
“Id”: “cb892d13-c105-11e6-87fd-0634dfa97937”,
“Name”: “My-Task”,
“TaskTypeConfiguration”: {
“CalenderInvite”: {
“Organiser”: {
“IsEnabled”: false,
“TemplateContent”: null,
“Subject”: null,
“IsSent”: false
},
“Owner”: {
“IsEnabled”: false,
“TemplateContent”: null,
“Subject”: null,
“IsSent”: false
},
“Lead”: {
“IsEnabled”: false,
“TemplateContent”: null,
“Subject”: null,
“IsSent”: false
}
},
“Location”: {
“IsEnabled”: true,
“IsMandatory”: true,
“LocationValue”: “fgdsgdg”
},
“BusinessWorkFlow”: {
“IsEnabled”: true,
“Status”: {
“Label”: “Color”,
“Values”: [{
“Text”: “Purple”,
“IsDefault”: false
}, {
“Text”: “Blue”,
“IsDefault”: true
}, {
“Text”: “Red”,
“IsDefault”: false
}, {
“Text”: “Black”,
“IsDefault”: false
}]
}
}
}
}
}
