Scenario: We can add HTML content in a Email Body and we can use basic operations like looping, if conditions, arithmetic and logical operations in this section. Here Pending Time sheets details are sending to corresponding project managers. The email body contains Time sheet link, and other details including its link to the corresponding time… Continue reading Scheduling Email With HTML Content
Category: Suite scripts samples
All the samples related to suite scripts.
Converting Date to d/m/yyyy format
Scenario: Convert given date to the d/m/yyyy format Solution: You need to use the module ‘N/format‘ to convert the date to different formats. format.parse method can be use for this. It parses a value from the appropriate preference format to its raw value. The appropriate preference format is the one selected in the Date Format… Continue reading Converting Date to d/m/yyyy format
Scheduling Fixed Asset Creation
Scenario: If the bill/journal contains lines that don’t have fixed assets created is greater than 100, The script will create fixed assets with scheduled process. The script will be scheduled for every 1 hour. And the scheduled script will send the email to the bill owner after creating the fixed asset for that bill. Solution:… Continue reading Scheduling Fixed Asset Creation
Rescheduling Tasks using scheduling script
Scenario: Example for rescheduling tasks using scheduling task For rescheduling, you need to import ‘N/task’ module first. It is needed for creating each rescheduling tasks after reaching the limit of remaining governance. You can just call this function whenever you want rescheduling. You can change the parameters of the function according the requirement. In this… Continue reading Rescheduling Tasks using scheduling script
Automatically creates Fixed Assets from Vendor bill/ Journal
Scenario: Automatically create fixed assets from Bills/Journals when these records are created in Netsuite Solution: When a vendor bill/journal creates corresponding fixed asset records will be created automatically if the line count is less than 10. //JJ UE FA Automation QG-118.js //JJ CS Validations for FA Creation QG-119.js Vendor bill Example:
Navigation from One suitelet to Another suitelet
Scenario: By clicking from a suitelet it need to be navigate to another Suitelet Solution: Every elements in the suitelet can be added by using usual suitelet form and form elements. To navigate from a suitelet to another you can use window.location.href, along with URL. In this example, projects are listing and according to the… Continue reading Navigation from One suitelet to Another suitelet
Showing values of a field according to the values of another field using Suitelet
Scenario: There can be one or more tasks can be for a project. Here We are listing projects and It has to list the project tasks of selected project using a suitelet. Solution: //JJ SL Suitelet.js //JJ CS Validations.js
Discount and Shipping Cost not showing in PDF even if inline discount shipping is enabled
Scenario The customer would like to show discount and shipping cost in the sales order pdf as inline. It should be shown even if the PDF is generated via print PDF icon or using Suitelet script. The current PDF is as below. Solution Ensure that following feature is enabled in the NetSuite account Check this… Continue reading Discount and Shipping Cost not showing in PDF even if inline discount shipping is enabled
Change Class of Settlement Record by taking the value from Line item of another Record.
//Info: JOIN-205 Note:This part is added under Reduce context stage in MapReduce script.‘dataObj’ , which is mentioned initially holds the value of records that the user chooses. This can be done in getInputData stage.
Wave PDF Sample
Here is a sample code for wave PDF using the advanced PDF feature in NetSuite