Vishal Chaudhari
03/31/2026, 1:08 PMCeligo AI
03/31/2026, 1:09 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you are trying to create a customer using PHP script but encountering an issue with a select field
custentity_hps_cus_primary_location.
The issue might be due to the way you are setting the value for the select field. In your code, you are using StringCustomFieldRef() for a select field which might be causing the issue. For select fields, you should use SelectCustomFieldRef() instead.
Here is how you can do it:
php
// Create a custom field reference (assuming a select type field)
$customField = new SelectCustomFieldRef();
$customField->scriptId = "custentity_hps_cus_primary_location";
$customField->value = new ListOrRecordRef();
$customField->value->internalId = '24'; // Replace with your field's ID
This will create a select custom field reference and set its value.
Please replace the corresponding part in your code and try again.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/31/2026, 1:09 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824768126
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818908691
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810180724
Celigo AI
03/31/2026, 1:09 PM