Discussions
Script to open sales order form, pre-populated?
To help resolve shipping errors, I want to create a button on a sales order called "Create Claim Order". When the user pushes that button from an existing order, I would like to open a new sales order window with some information already populated. For example, I want to have the customer, the class, the shipping address copied from the original order. I also want to populate some custom fields, such as creating a link back to the original order.
I started implementing this by creating a button that, when pressed, invoked a SuiteScript to create the sales order, save it, and then change the window.location to the newly created sales order. The big problem is that I don't want to save the sales order first. I really just want to open a new sales order in a ready-to-edit, unsaved condition, with certain values already populated.