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.
How do I prevent inactive BOM revision changing when editing Work Order in suitescript?
I have a Work Order which is using bill of materials revision which is marked as inactive. When I try to edit the start date of the Work Order in suitescript, BOM revision is automatically changed to one that is not inactive.
If I load the record dynamically (isDynamic = true) and explicitly set the BOM revision to be the inactive one (the one that is currently selected on Work Order), record.save() will throw an INVALID_FLD_VALUE exception.
Start date can be changed manually from the UI while keeping the inactive BOM revision selected, so i guess this should be possible through suitescript as well.
Tagged:
1