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!
How to update "TRANSACTION CREATED" field in PLANNED ORDER via script ?
Hello, everyone
I'm trying to update the "TRANSACTION CREATED" field in PLANNED ORDER via script.
This is my script.
var planOrder = record.load({type: 'plannedorder', id: planOrderData.planN});
planOrder.setValue({fieldId: 'plannedorderstatus', value: 'IMPLEMENTED'});
planOrder.setValue({fieldId: 'firmed', value: true});
planOrder.setValue({fieldId: 'released', value: true});
planOrder.setValue({fieldId: 'transactioncreated', value: purchaseOrderId});
planOrder.save();
I understand that the 'PLANNED ORDER' field is quite unique because it could either be a work order or a purchase order.
Currently, my updates have been failing, so I'm hoping someone can advise me on how to adjust it, rather than just writing the corresponding order ID directly.
0