When you can’t add details in every fields in Suitelet

Suitelet scripts can be executed with any client scripts. Sometimes in such situations, the suitlet page(interface) mayn’t be working perfectly. There will be some conditions where some fields may not be working or sometime you can’t enter values to all (necessary) fields. In such situations, output also won’t be perfect. In the client script, almost… Continue reading When you can’t add details in every fields in Suitelet

How to resolve splitting of field data in to two columns when we try to push data to single column in CSV file using Suitescript ?

Scenario : If we use comma as separator when creating CSV file through suite script, Suppose field data contains comma, when we try to push data to a single column in CSV that data will be break at comma and pushed to 2 columns. How to resolve this issue ? Solution : When we get… Continue reading How to resolve splitting of field data in to two columns when we try to push data to single column in CSV file using Suitescript ?

GET transfer Order API Restlet

/** * @NApiVersion 2.1 * @NScriptType Restlet *//** * APP GET transfer Orders * * Get the Transfer orders * .Inventory Transfer Orders with status “Pending Fulfillment” and sourceLocationId = siteId * .Inventory Transfer Orders with status “Pending Receipt” and destinationLocationId = siteId */define([‘N/search’,’./moment.min.js’,’./hs.2x.logger.js’], /** * @param{search} search */ (search,moment,logger) => { let API =… Continue reading GET transfer Order API Restlet

Sample Restlet

/** * @NApiVersion 2.1 * @NScriptType Restlet */define([“N/record”], (record) => { /** * Defines the function that is executed when a GET request is sent to a RESTlet. * @param {Object} requestParams – Parameters from HTTP request URL; parameters passed as an Object (for all supported * content types) * @returns {string | Object} HTTP… Continue reading Sample Restlet

Custom Suitelet for changing the Project Status

This script creates a custom suitelet form with fields project Name, project subsidiary, Current Status, New Status.On selecting the new status from the dropdown field ithe value will set on the project record.and can add this link to the Employee center. /** * @NApiVersion 2.1 * @NScriptType Suitelet */define([‘N/record’, ‘N/redirect’, ‘N/runtime’, ‘N/search’, ‘N/ui/message’, ‘N/ui/serverWidget’], /**… Continue reading Custom Suitelet for changing the Project Status

Download Excel from the custom suitelet page

/** * @NApiVersion 2.1 * @NScriptType Suitelet */ /************************************************************************************************************************* * CLIENTNAME: * AMVOP-117 * Vat Report * ********************************************************************************************************************** * Date 23/07/2021 * * Author: Jobin & Jismi IT Services LLP * Script Description : This Script is to create suitelet page for vat report * Date created : 23/07/2021 * * REVISION HISTORY * *… Continue reading Download Excel from the custom suitelet page

Sample – User Event Script

User event script /** * @NApiVersion 2.1 * @NScriptType UserEventScript */ define([‘N/ui/message’,’N/runtime’,’N/email’], (message,runtime,email) => { /** * Defines the function definition that is executed before record is loaded. * @param {Object} scriptContext * @param {Record} scriptContext.newRecord – New record * @param {string} scriptContext.type – Trigger type; use values from the context.UserEventType enum * @param {Form}… Continue reading Sample – User Event Script

Sample Mass update for item fulfilment status

Mass update script /** /** * @NApiVersion 2.1 * @NScriptType MassUpdateScript */ /** * update the status of the itemfulfillment */ define([‘N/runtime’,”N/record”], (runtime,record) => { /** * Defines the Mass Update trigger point. * @param {Object} params * @param {string} params.type – Record type of the record being processed * @param {number} params.id – ID… Continue reading Sample Mass update for item fulfilment status

Sample Suitelet – User interface Form

/** * @NApiVersion 2.1 * @NScriptType Suitelet */ /** * Simple form with Name field – Say hello */ define([‘N/ui/serverWidget’], /** * @param{serverWidget} serverWidget */ (serverWidget) => { /** * Defines the Suitelet script trigger point. * @param {Object} scriptContext * @param {ServerRequest} scriptContext.request – Incoming request * @param {ServerResponse} scriptContext.response – Suitelet response *… Continue reading Sample Suitelet – User interface Form