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
Tag: Suitescript2.0
Reference to the Parent window
In the case of loading a pop-up window from a parent window, use the function – window.opener.location The window interface’s opener property returns a reference to the window that opened the window, either with open(), or by navigating a link with a target attribute. We can even reload the parent window from the child popup… Continue reading Reference to the Parent window
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
Use of ignoreFieldChange options in record.setCurrentSublistValue(options)
There is a no of scenarios where the field values are auto-populated on the field change of a sublist field. For example, when an item sublist field value has been set in the sales order item lines, then fields like rate, tax code, description, location, etc will be automatically populated in the item line. The… Continue reading Use of ignoreFieldChange options in record.setCurrentSublistValue(options)
How to add values to an email template from a custom record and send email
We can use email templates for easily sending emails between two records having a contact. Email templates are helpful when the emails should follow a specific format or have some common content like company logo and address.Email templates can be accessed using the navigation: Documents> Templates > Email templatesIf needed to add field values from… Continue reading How to add values to an email template from a custom record and send email