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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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