Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to submit category (industry) value for a Customer record?
I am unable to determine the RecordRef 'type' to use for the category ("industry") value for adding a Customer via the API, using the PHP Toolkit.
My code is based on the sample in the PHP Toolkit ("add_customer.php"). I've been able to successfully specify the values for some RecordRef types:
[PHP]
$customer->territory = new RecordRef;
$customer->territory->internalId = 9;
$customer->territory->type = 'territory';
$customer->subsidiary = new RecordRef;
$customer->subsidiary->internalId = 2;
$customer->subsidiary->type = 'subsidiary';
[/PHP]
but the category (industry) does not accept a type of 'category' nor 'industry'. What is the correct 'type' to use for this? How can I determine the valid 'types' to use for issues like this in the future?
My code is based on the sample in the PHP Toolkit ("add_customer.php"). I've been able to successfully specify the values for some RecordRef types:
[PHP]
$customer->territory = new RecordRef;
$customer->territory->internalId = 9;
$customer->territory->type = 'territory';
$customer->subsidiary = new RecordRef;
$customer->subsidiary->internalId = 2;
$customer->subsidiary->type = 'subsidiary';
[/PHP]
but the category (industry) does not accept a type of 'category' nor 'industry'. What is the correct 'type' to use for this? How can I determine the valid 'types' to use for issues like this in the future?
0