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
getFieldValue('createdfrom') is null
I've spent the weekend fighting this.
I have the following code for when we "Receive" items from Purchase Orders:
What I need is to get the internalid of the Purchase Order that the receipt was created from but it is always blank.
Doesn't matter if I do before_submit or after_submit, it is always null:)
Can anybody see what I am doing wrong?
Thanks, Shanon
currentRecord = nlapiGetNewRecord(); po_id = currentRecord.getFieldValue('createdfrom'); debug_output('Audit', "PO", po_id); // po_id = "110168"; //Load the PO so that we can get data from it var orig_po_record = nlapiLoadRecord('purchaseorder', po_id); 0