Add Rich Text Editor & Customize Email Send Action in Task Record

/**  * @NApiVersion 2.1  * @NScriptType UserEventScript  */ /************************************************************************************************  * * EXPT-347 Customize the Email Sending Functionality**  *  * **********************************************************************************************  *  * Author: Jobin and Jismi IT Services  *  * Date Created : 21-June-2024  *  * Created By: JJ0124, Jobin and Jismi IT Services  *  * Description : Send Custom Email to the assignee when… Continue reading Add Rich Text Editor & Customize Email Send Action in Task Record

Excel – KPI Dashboard Connection using Script

/**  * @NApiVersion 2.1  * @NScriptType Suitelet  */ /************************************************************************************************  * Hygiene Technologies NZ-NS  *   * HTNZ-155 : KPI Dashboard  *  * **********************************************************************************************  *  * Author: Jobin and Jismi IT Services  *  * Date Created : 24-August-2023  *  * Description : Suitelet Page For the Dynamic connection to Excel  *  * REVISION HISTORY  *   * @version… Continue reading Excel – KPI Dashboard Connection using Script

HRIMS Employee Attendance Sync

/** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ /*********************************************** * ATPL-67 – Implementation | HRIMS Integration * ********************************************* * * Author: Jobin & Jismi IT Services LLP * * Date Created : 05-February-2024 * * Created By: JJ0124, Jobin & Jismi IT Services LLP * * Description : Map Reduce script is used to perfrom… Continue reading HRIMS Employee Attendance Sync

HRIMS Employee Sync

/** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ /*********************************************** * ATPL-67 – Implementation | HRIMS Integration * ********************************************* * * Author: Jobin & Jismi IT Services LLP * * Date Created : 05-February-2024 * * Created By: JJ0124, Jobin & Jismi IT Services LLP * * Description : Map Reduce script is used to perfrom… Continue reading HRIMS Employee Sync

Change a Sublist Field Property Using SuiteScript 2.0

When using method isDisabled and an error is encountered, there is a workaround that involves using a different approach with updateDisplayType method. /**  * @NApiVersion 2.x  * @NScriptType UserEventScript  */ define([],     function() {‌         function beforeLoad(scriptContext) {‌             scriptContext.form.getSublist(‘item’).getField(‘description’).updateDisplayType({‌displayType:’disabled’});            … Continue reading Change a Sublist Field Property Using SuiteScript 2.0

Resolve Error “Custom Module Call Undefined” in SuiteScript 2.0

In SuiteScript 2.0, make sure to beautify or format your code to avoid undefined calls from the originating script. define([‘N/error’, ‘N/file’, ‘N/format’, ‘N/https’, ‘N/record’, ‘N/render’, ‘N/runtime’, ‘N/search’, ‘N/xml’], function(error, file, format, https, record, render, runtime, search, xml) {‌     function execute(scriptContext) {‌     var cmsearch = search.load( {‌     id: ‘customsearch42’  … Continue reading Resolve Error “Custom Module Call Undefined” in SuiteScript 2.0

SuiteScript – Submitting a Map Reduce Task Results to NO_DEPLOYMENT_AVAILABLE Error

When executing a Map/Reduce Script the error “NO_DEPLOYMENT_AVAILABLE” is thrown. This error is thrown if a script attempts to submit a new instance of a Map/Reduce Script Deployment into the queue that is still in progress. Below are two options using Suite Script 2.0 that can help to prevent the script from throwing the error.… Continue reading SuiteScript – Submitting a Map Reduce Task Results to NO_DEPLOYMENT_AVAILABLE Error

Transferring Quantity Pricing from One Item to Another Item using SuiteScript

/** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ define([ ‘N/record’, ‘N/search’ ], (record, search) => { /** * Function finds the item type and returns the record.load object * @param {String} id * @returns record.load */ function loadItemRecord(id) { const ITEM_TYPE = { ‘Assembly’: ‘assemblyitem’, ‘Description’: ‘descriptionitem’, ‘Discount’: ‘discountitem’, ‘GiftCert’: ‘giftcertificateitem’, ‘InvtPart’: ‘inventoryitem’, ‘Group’: ‘itemgroup’,… Continue reading Transferring Quantity Pricing from One Item to Another Item using SuiteScript

Saving a PDF File from Base 64 format using Suitescript

let html_Tag = ‘<?xml version=”1.0″?><!DOCTYPE pdf PUBLIC “-//big.faceless.org//report” “report-1.1.dtd”>n’ +                     ‘<pdf>n’ +                     ‘<head>n’ +                     ‘</head>n’ +                     ‘<body padding=”.01in” width=”605px” height=”405px”>n’ +                     ‘    <img src=”data:image/gif;base64,’+base64decode+'” style=” width:600px; height:400px; margin-left:20px;”/>n’ +                     ‘</body>n’ +                     ‘</pdf>’;                                      var myTemFile=render.create();                 myTemFile.templateContent = html_Tag;                 var pdfFile = myTemFile.renderAsPdf();                 pdfFile.name = fulfilId+”.pdf”;                 pdfFile.folder = FolderID;                 let id = pdfFile.save();