The function to check purchase order is drop ship/special order
Category: SuiteScript Functions
SuiteScript Functions related articles will be posted in this category
Function to remove spaces
Function to remove spaces
Escape special characters in a text
Escape special characters in a text
Saved search to get the Location OnHand from Item record
Get today’s date in a different timezone using the search
Get today’s date in a different timezone using the search
Function to check whether the account is production or not
Function to check whether the account is production or not
Split URL String to get each parameter value in the JavaScript
function splitData(){ try { var value=”journreference=123line=A&destination=China&operator=Belbo&departure=104″; // split the string with these characters var parts = value.split(/[#\?&]/g); // find the piece with the key “destination” var filteredParts = parts.filter(function (part) { return part.split(‘=’)[0] === ‘destination’; }); // split the value and key, and grab the value [1] if (filteredParts) { var splitValue = filteredParts[0].split(‘=’)[1]; }… Continue reading Split URL String to get each parameter value in the JavaScript
Create Item Location Configuration record
Create Item Location Configuration record
Remove duplicate image direct from the website using JQuery fn
We can remove the duplicate image from the website by using this function . We find image with their source in the website so if we want to delete it we can make a if condition there so that it will take only one different source files. Using Jquery fn : <script> $(document).ready(function() { var… Continue reading Remove duplicate image direct from the website using JQuery fn
Extract xls file to Json
For implementing the function, need to implement excel js library function /** * file Extract function * @param {Number} fileId internal ID * @return {Object} returnDate Json Object */ function extractFileToJSON(fileId) { try { let returnData = []; let excelFile = file.load({ id: fileId }); let workbook = XLSX.read(excelFile.getContents(), {type: ‘base64’}); let firstSheetName = workbook.SheetNames[0];… Continue reading Extract xls file to Json