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.
Populate createdfrom
Hopefully a quick question, I am trying to write a script that creates a po from a sales order. I have the below two lines (amongst others) that should create a new record and then set the created from field. I don't get an error on execution but the record is created accept the created from field is empty and not shown in the form, is there anyway I can populate this field? Do I need to create the record in a different way?
var sstranid = nlapiGetRecordId() //Sales Order Number
var newpo = nlapiCreateRecord('purchaseorder')
newpo.setFieldValue('createdfrom',sstranid)
Thanks in advance
0