While using the standard New button in Salesforce will have some limited functionality, almost all Breadwinner for NetSuite customers will want to create records in NetSuite either using Breadwinner's Global Classes and Methods (not covered in this article) or they will want to use our Guided Record Creation wizard (which is explained below).
This process requires:
- A Custom URL, created via our Custom URL documentation or internal Custom URL Creation Wizard
- A custom button with that URL as the value, ideally as a List button on the record you want to create
- That custom button displayed on the page layout of the record you want to create from
To create a Custom URL, please feel free to contact Breadwinner Support for assistance. However, should you wish to create it yourself, or further modify an existing button yourself, then you are welcome to use the same documentation we use internally. Please be aware that we change this documentation by adding to it and some aspects may not be fully tested (which is why we prefer you contact us). The Custom URL is documented here. Once you have the Custom URL value, you will need to save it as a button.
The URL must be the value of a custom Button. That button needs to be on the Object you want to create. So, if you wanted to create a Sales Order in NetSuite, this custom button must be on the "NetSuite Sales Order" object in Salesforce.
Here is an example screenshot of a custom button on a NetSuite Sales Order
While the value of the button will change for each situation, the configuration of the button should look like this screenshot. Please note this is a List Button, for which "Display Checkboxes" is unchecked, and it opens in an existing window without sidebar or header.
Displayed on the Page Layout
While the custom button itself must be on the record you wish to create, the button must be placed on the page from which you are creating that NetSuite Record.
So, if you are creating a NetSuite Sales Order from an Opportunity, the custom button must be on the Opportunity. In this example, the NetSuite Sales Order related list will be on the Opportunity. The standard New button must be removed, and the Change Owner should likely be removed as well. And, the Custom Button should be added to the Sales Order related list.
If you are using the Object Manager, navigate to the Object you are creating from, edit the Page Layouts (number 1 on the screenshot), find the NetSuite object's related list, click on the wrench/spanner (number 2 on the screenshot), expand the Buttons section which will be on the bottom of the white modal (number 3 on the screenshot), and ensure that the two standard buttons are unchecked, and that your custom button is in the Selected Buttons section (the two green boxes on the screenshot).
It is possible and fairly easy to create multiple buttons. You might want multiple buttons for different sales activities, or multiple buttons for different page layouts. Or you might want to create multiple buttons to allow the creation of a NetSuite Object from different originating objects/records. In short, there are a number of reasons you might want multiple buttons, as you will need a single button per Custom URL.
If you have multiple buttons, then calling them all "New NetSuite Sales Order" will be problematic, because you won't know which one is which. So, you might wish to name your button "New NetSuite [Object] from [Object]", so in our above example it would be "New NetSuite Sales Order from Opportunity". Or "New NetSuite Sales Order for Renewals" if your Custom URL is different for renewals vs new sales. (this would not be necessary if the Custom URL code was the same, in which case, multiple buttons are not warranted)