Suitescript code to fetch required details as array from CSV file

Consider that columns Document No. and Internal ID need to be fetched from the CSV file. let fileObj = file.load({     id: ‘/csv-file-path’, }); let csvContent = fileObj.getContents(); const rows = csvContent.split(‘n’); // Split CSV content into rows const intidIndex = 0;//index of the required column const docNoIndex = 1;//index of the required column… Continue reading Suitescript code to fetch required details as array from CSV file

Streamlining Warehouse Integration: Sending Purchase Orders to Carton Cloud

In the realm of efficient warehouse management, syncing purchase orders seamlessly is a critical task. For Bacchus Wine Merchants, the challenge was to automate this process based on the warehouse location. With NetSuite as their backbone, they needed a solution that would send POs to specific Carton Cloud accounts based on the destination. Warehouse Routing… Continue reading Streamlining Warehouse Integration: Sending Purchase Orders to Carton Cloud

Create Item Receipt for a Purchase Order from a payload that contains respective item details.

Let the variable requestBody contains the payload. Sample payload. {   “purchaseOrderPONumber”: “65416981”,   “item”: {     “items”: [       {         “itemId”: “114579”,//item internal id         “line”:”1″,         “quantity”: “99”,         “rate”: “1.00”       }    … Continue reading Create Item Receipt for a Purchase Order from a payload that contains respective item details.

Article: Issue with Item Rates Not Populating in Invoice Billable Items Subtab in NetSuite

In the world of business, efficiency and accuracy are paramount. Any hiccup in the process can lead to delays and errors that can impact the bottom line. One such issue has been observed in NetSuite, where item rates are not populating correctly in the invoice billable items subtab. This article will delve into the steps… Continue reading Article: Issue with Item Rates Not Populating in Invoice Billable Items Subtab in NetSuite

Create SuiteScript of a saved search to fetch location details by passing an array of location names.

Consider the variable ‘locationArray’ as the array that contains location names. let stringArr = ”; for (let i = 0; locationArray.length > i; i += 1) {     stringArr += i > 0 ? “, ‘” + locationArray[i] + “‘, ‘true'” : “‘” + locationArray[i] + “‘, ‘true'”; };let locationSearchObj = search.create({    … Continue reading Create SuiteScript of a saved search to fetch location details by passing an array of location names.

Using the Context Filtering Tab for User Event and Client Script

On the Context Filtering tab of a script deployment record, you can select the contexts in which you want your script to execute. Your script will not execute if it is triggered in a context that is not selected. By default, all contexts are selected except for Web Application and Web Store. Often, it is… Continue reading Using the Context Filtering Tab for User Event and Client Script

Automating Sales Order Approval Workflows in NetSuite

In the world of commerce, efficient order processing is crucial for maintaining customer satisfaction and operational excellence. For businesses using NetSuite, streamlining the approval process for sales orders can significantly enhance workflow efficiency and ensure adherence to business rules. In this guide, we’ll delve into how you can automate sales order approval workflows in NetSuite,… Continue reading Automating Sales Order Approval Workflows in NetSuite

How to zip a folder from terminal

Navigate to the project folder Run the command for zip package installation sudo apt-get install zip To zip folder, run the command zip -r compressed_filename.zip foldername

Published
Categorized as Magento

Depolyment commands in Magento2

The Magento deployment commands are below. php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f

Published
Categorized as Magento