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!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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
Creating New Custom Record Not Working
I am trying to create a new custom record called "Truck Delivery Record" when a new Sales Order is saved. I am not getting any error messages, and the Sales Order is saving, but no new record is being created. I have triple checked my internal ID's to make sure they are correct. Right now the script is supposed to be creating a mostly blank record, with just the ship date being set. Here is the code:
function NewTruckDeliveryCreateRecord(type)
{
var currentRecord;
var recordCreated;
var deliverydate;
// create new Truck Delivery Record only when a new Sales Order is created
if ( type == 'create' )
0