Articles written by Manuelito Macalinao
Articles written by
Manuelito Macalinao
Source Transaction Line Fields from Line on Sales Order onto Body Fields for Linked Work Order using SuiteScript
The User would like to source values of custom Transaction Line Fields from respective lines on a Sales Order onto Body Fields for the Linked Work Order possibly created in the following manner:
Checking Script Update Details in Script File
If we want to check when, what, and who changed a specific script, we may follow the steps below:
Set the Revenue Rec Start Date and Revenue Rec End Dates via Script
This is applicable if you want toset theRevenue Start DateandRevenue End Dateof the item members based on the item group by using it on aUserEventScript.
Update Last Modified and By fields on Custom Record when a Note is Saved using a Script
On a Custom Record, when a Note is created and saved on the Notes tab, User Notes subtab, the Last Modified Date and By fields do not get updated.
Update Lines on Sales Orders using Map/Reduce Script
Mass update lines in a Sales Order which contain a particular value by usingMap/Reducescript.
Get Total Unbilled PO Amount on Vendor Record Using Client Side Script
The total unbilled amount which can be seen in theAmountfield on theVendorrecord is based on the items' total quantity multiplied by their respective amounts. Some use cases permits users to change the rate of each item on theVendor Billrecord which will sometime exceed the totalPurchase Orderamount set in thePurchase Orderrecord.
Set the Class Column on Item Sublist to Mandatory on Company Preferences via Script
User wants to set the Item Sublist columns mandatory to ensure that important information are set on the record (e.g., the Class field).
Dynamically Add Custom Button Using User Event Scripts
A user wants to dynamically add a button in a record using aUser Eventscript.
Use a Group of Approvers in a Workflow Utilizing a Workflow Action Script
User needs toincorporatea certain group ofApprovers,SupervisorsorEmployeesto aWorkflowto handle the approval process ofa record.
Call Client Scripts from Workflow
Scenario
Below is an example to demonstrate how this is done. This requires basic SuiteScript and Workflow knowledge.
Solution
- Create a JavaScript file with the following codes:
Note:The above function will be called by the Workflow on Step 5.4.functionsayHello(s){alert('Hello '+s);/* * return true|false line is required to allow/disallow the workflow action to execute. * Condition will treat the function returned false if this line is omitted. * Thus, Workflow Action (e.g. Set Field Value) will not execute */returntrue;}
- Navigate toCustomization>Scripting>Scripts>New
- Click on the+logo beside theScript FilePopup List
- Select the JavaScript file on the File Popup Window and click onSave
- UnderDeploymentstab, add the record (Applies Tocolumn) script & workflow must be applied to (For this example,Customerrecord is used and click onSave)
- Navigate toCustomization>Workflows>Workflow>New
- Basic Information:
- Name:EnterName
Example:EnterCustomer Workflow - Record Type:SelectCustomer
- Sub Types:SelectCustomer
- Execute as Admin:EnterCheckmark
- Release Status:SelectReleased
- Name:EnterName
- Event Definition:
- On Create:EnterCheckmark
- On View or Update:EnterCheckmark
- ClickSave
- ClickState 1
- Bottom right corner:ClickNew Action
- ClickSet Field Value
- Basic Information:
- Trigger On:SelectBefore User Edit
- Event Types:SelectCreate
- Context:SelectUser Interface
- Triggering Client Fields:SelectMemo
- Condition:
- SelectFormula
- Formula:EntersayHello(nlapiGetFieldValue('companyname'))
- Triggering Client Fields:SelectMemo
- Parameters:
- Field: SelectAccount
- ClickSave
Trigger a User Event Script on a Scheduled Script
A user would like to ensure that a User Event Script is triggered when a Scheduled Script is run.
SOAP Web Services Archives
This page includes documentation for the 2016.2 through 2022.2 endpoints. For each WSDL, the following resources are available:
NetSuite Versioning and WSDL Versioning Overview
The naming convention for NetSuite versions and WSDL versions are the same. For example, for 2023.1, there is an accompanying 2023_1 version of the WSDL, as shown in the following WSDL URLs:
Upgrading WSDL Versions
NetSuite customers typically upgrade their WSDL when a newer version includes functionality that enables them to meet a particular business need. They will also upgrade their WSDL when the one they are currently using is going to be retired by NetSuite (seeSupport for Existing WSDL Versionsfor details). If you do plan to upgrade the WSDL you are using, you should upgrade to the latest available version to prolong the life cycle for your integrated application.
Payment Processing
The Payment Instruments feature makes using various payments methods more straightforward and, in the case of payment cards, more secure. Payment Instrument is a set of fields that can be used to charge a shopper without any action on the shopper's side.
Consolidated Payments
If you sell to customers who have subcustomers, the Consolidated Payments feature gives you the flexibility to accept payment for subcustomer invoices from either the top-level customer or from the individual subcustomer.
Generating Statements
You send statements to remind customers to pay their invoices. Most companies send statements one time a month.
Customer Statements
A statement reviews a customer's account on a regular basis, usually monthly. Send statements to remind your customers to pay their invoices.
Drop Zone Is Missing in Records with File Drag and Drop
The missing dropzone can be caused by several factors: