We can attach multiple files to salesorder using record.attach that can be attached in a user event script. // Track the number of attached files var attachedFileCount = 0; // Run the search and attach each file found … Continue reading Attaching mutliple files to SalesOrder using record.attach
Author: Vasanth Ponni Vaikunda
Prioritize Web Orders Over Sales Orders Entered via UI When Doing Bulk Fulfillment
Scenario User would like to prioritize Web Orders over Sales Orders created via user interface (UI) when doing bulk fulfillment. The Source Field is not available as an Additional Filter when customizing Fulfill Orders page. Since Web Orders automatically generate a Confirmation Number and there is no preference set to disable this. By default, the Confirmation Number of the Web Order is displayed under the Memo column of… Continue reading Prioritize Web Orders Over Sales Orders Entered via UI When Doing Bulk Fulfillment
Difference Between nlapiGetCurrentLineItemValue or record.getCurrentSublistValue and nlapiGetLineItemValue or record.getSublistValue
There are two functions for accessing line items in sublists. For SuiteScript 1.0: nlapiGetCurrentLineItemValue() and nlapiGetLineItemValue() For SuiteScript 2.0: record.getCurrentSublistValue() and record.getSublistValue() These two functions perform the same in most contexts except Client scripts. In Client scripts, the retrieved values can be different. The nlapiGetCurrentLineItemValue() or record.getCurrentSublistValue() should be used to pull the new value… Continue reading Difference Between nlapiGetCurrentLineItemValue or record.getCurrentSublistValue and nlapiGetLineItemValue or record.getSublistValue
Set delivery method based on the items added to the cart
We can set delivery method based on the items added to the cart also based on the subscribed user or address with residential // Get the shipping configuration and profile let shippingConfig = Configuration.ShippingItems.config; let profile = ProfileModel.getInstance(); let isSpecialSubscriber = profile.attributes.customfields.find(field => field.name === ‘yourCustomFieldName’)?.value === ‘T’; // Modify field name as needed //… Continue reading Set delivery method based on the items added to the cart
How to use N/format/i18n for Date Formatting in User’s Timezone
javascriptCopy codedefine([‘N/format/i18n’, ‘N/runtime’], function (formatI18n, runtime) { function getFormattedDate() { try { // Get the user’s timezone dynamicallyvar userTimezone = runtime.getCurrentUser().getPreference(‘TIMEZONE’); log.debug(“User Timezone”, userTimezone); // This will show the user’s timezone like “America/New_York”// Get the current datevar currentDate = new Date(); // Format the date using the user’s timezone with the i18n modulevar formattedDate =… Continue reading How to use N/format/i18n for Date Formatting in User’s Timezone
Tags for Use in HTML Pages and Site Templates
The NetSuite Web Site Tags allow you to display tab, category, and item information in HTML files you host from the file cabinet or the custom HTML you use in your Web Site Themes. To use Web Site Tags, the Advanced Site Customization feature must be enabled in your NetSuite account. To host HTML files… Continue reading Tags for Use in HTML Pages and Site Templates
Create custom field in Company (General Preference)
So for creating a custom field in Company’s General Preference we need create a script or we can use the already created script. open the script which is created and navigate to the parameters Sub-tab click new parameter fill the mandatory fields like label, type etc and give the prefernce as Company then finally click… Continue reading Create custom field in Company (General Preference)
Content and SEO
Content you add with Site Management Tools can impact your site’s search engine ranking. Follow the best practice guidelines detailed here to optimize the content for search engines. These search engine optimized pages can lead to a higher search engine ranking. SEO considerations include: Image Content SEO When you create images to add as content,… Continue reading Content and SEO
How to add HTML content to a class without extending template
We can be able to add the HTML content without extending template using append method. First we need to extended the corresponding view in order to display the content in the website. With the above code we can be able to add the p tag to the classname order-history-details-content-col. Even we pass variables as in… Continue reading How to add HTML content to a class without extending template
Meditrack Subscription (Subscribing to a aproduct)
Meditrack Subscription We have added a separate ‘Subscription’ tab in MyAccount where customers can subscribe to ‘Meditrack’. We can navigate to the subscription section from the header menu profile. To subscribe, customers must set up a default shipping address, billing address, and credit card. Otherwise, a validation message will be displayed. Upon successful… Continue reading Meditrack Subscription (Subscribing to a aproduct)