[PHP SDK] Can't add url
[PHP SDK] Can't add url
Hello
I am trying to add url using PHP SDK.
Field type: URL
I do like this
$lead->setFieldValue("Field_Name", "
https://google.com
");
I get exception like this:
["exceptionCode":"zcrmsdk\crm\exception\ZCRMException":private]=> string(12) "INVALID_DATA" ["exceptionDetails":"zcrmsdk\crm\exception\ZCRMException":private]=> array(2) { ["expected_data_type"]=> string(7) "website" ["api_name"]=> string(14) "Field_Name" }
Seems like data type is incorrect, but
https://google.com
is website, isn't it?