On the Enter Sales Order page, there’s a Handling Mode field under the Billing subtab, which is set to a default value of “Processing.” This default value can be overridden and set to “Save Only” using a Workflow Action Script with the Before Load Trigger Type.
Solution
- Navigate to Customization > Scripting > Scripts > New
- Select the Add (+) button which will prompt a pop-up window
- Select Upload and look for the Custom Script in your Files/Folders
- Select Save
- Select Create Script Record
- Select Workflow Action Script
- Name: Enter a Name for your Script
- Example: Custom Workflow Action Script
- Function: Enter handlingMode
- Select Save and Deploy
- Set the following values then hit Save:
- Applies To: Enter Sales Order
- Status: Select Released
- Log Level: Select Debug
- Roles (Select All): Enter checkmark
2. Create a Workflow by navigating to Customization > Workflow > Workflows > New
a. Set the following:
- Name: Enter a Name for your Workflow
Example: Custom Workflow
- Record Type: Select Transaction
- Sub Types: Select Sales Order
- Release Status: Select Released
- Event Definition: Tick On Create
- Trigger Type: Select Before Record Load
b. Select Save
c. Then, add the created Workflow Action Script as New Action
Sample Script
function handlingMode(){
nlapiSetFieldValue('handlingmode', 'SAVE_ONLY');
}