Button URL Structure
The Button URL always starts with a specific line and contains a minimum of two parameters: the originating record and the associated Salesforce Account.
It is not required to add [naX.salesforce.com] or anything similar, the button can simply start with /apex/...
The above URL presumes you are creating a record under a Salesforce Account (which in turn will look for or create a NetSuite Customer under that Salesforce Account).
Please note that the only field that should contain a Salesforce ID is the originating record field. Additionally, this is the only field containing brackets, {}. All other fields will contain the API name of the field without any brackets. The API name is easiest copied from the Salesforce Setup page, showing all the fields on the Originating object.
While building the URL, we recommend using a suffix &testing=true to look at our testing page. You can temporarily build this into the URL formula or append it to the URL after you click on the New Sales Order button. This testing page will display the API names you have passed and the corresponding values Breadwinner retrieved based on the API names. It acts as a confirmation page and is visible only when testing is set to true.
Once you review and feel confident, you may remove the &testing=true from the Button URL.
You can also use the Breadwinner provided Button URL Generator to auto-generate the Button URL for all the supported transactions.