Hey Everyone.
We have 2 custom fields in a Task that I need to put data into.
Those are “Ordernumber” and “Salesman”.
I think I have got the correct ID of the fields (Not sure).
But how do I add data into this.
Documentation is not very clear here and is making my head hurt.
This is the code I have now. Where and how do I add custom field values here for my 2 fields?
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://app.asana.com/api/1.0/tasks',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('name' => '' . $adname . '', 'projects' => '1201177956477737', 'notes' => '' . $main_brief . '', 'assignee' => '1199508896039720'),
CURLOPT_HTTPHEADER => array(
*****
),
));