- $record->setFieldValue("First_Name","John");
- $record->setFieldValue("Last_Name","Doe");
-
$record->setFieldValue("Email","john@doe.com");
-
$record->setFieldValue("Owner","Jane Doe");
(Simply removing the owner setFieldValue also works.)
We can listen for the success response to determine if the insert failed, but it would be helpful if either (1) valid field values were added and/or (2) an error (e.g., "Invalid Field Value for Owner") was returned.
Finally, a related question: are we supposed to set the record owner using setFieldValue? What is the function of the setOwner method in the ZCRMRecord class?
Thanks.