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