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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Set custom field on new inventory item creation
Hi again. I'm trying to set the value of a custom field when creating a new inventory item, but I can't get the syntax quite right. I've been reading through the form posts of others who have gone through this issue and they have gotten me close.
The custom field I'm trying to set for our inventory items has a name of custitem_purch_unit_divisor, an internal NS id of 100 and has a type of "Integer Number". The latest version of code I have looks like this:
[PHP]$customFields = array (
array (
"internalId" => "100",
"value" => $_POST['custitem_purch_unit_divisor']
The custom field I'm trying to set for our inventory items has a name of custitem_purch_unit_divisor, an internal NS id of 100 and has a type of "Integer Number". The latest version of code I have looks like this:
[PHP]$customFields = array (
array (
"internalId" => "100",
"value" => $_POST['custitem_purch_unit_divisor']
0