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