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!
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