To resolve this remove the scheduled script context from the Execution Context under Context Filtering in the deployment of the user event Script
Author: Jasmine Jacob
What is the reason for not able to pass the salesorder document number as URL parameter when we pass it from a drop down list in suitelet that sources salesorder
The reason for that is the salesorder document number in the sourced dropdownlist list contains “#”. When we try topass that as URL it gets trimmed at #. The solution is to pass the internal id or remove the # symbol before passing it as a parameter.
How to hide a Column line field in a row
Write the below code in the LineInit of the ClientScript
How to get the previous month of current date
let new_date = new Date();
How To get Start and End Date of current month
const date = new Date(); // get current dateconst month = date.getMonth();const year = date.getFullYear();const startDt = new Date(year, month, 1);const endDt = new Date(year, month + 1, 0);
Saved Search to get Sales orders created in last one Hour.
Create Saved Search of type TransactionUnder the Criteria tab > Standard subtab: Type = is Sales Order Add Formula (Numeric) Field In formula column Enter: (TO_DATE(TO_CHAR({today},’MM/DD/YYYY HH24:MI:SS’),’MM/DD/YYYY HH24:MI:SS’)-TO_DATE(TO_CHAR({datecreated},’MM/DD/YYYY HH24:MI:SS’),’MM/DD/YYYY HH24:MI:SS’))*24 Description : less than or equal to 1Click Save.
Advanced PDF templates for Saved searches.
We can define multiple print templates for a single saved search using Advanced PDF/HTML Templates for any record type. The main reason to consider this feature is that we can use the power of saved searches to format data. Steps to create a template for printing saved search results. Go to Lists > Search > Saved… Continue reading Advanced PDF templates for Saved searches.
Saved Search for Sales Orders and Related transactions.
Solution 1. Go to Reports > Saved Searches > All Saved Searches > New.2. Select Transaction.3. Enter Name for the Title.4. Enter the following in the Criteria tab:—Type = is Sales Order—Applying Transaction… Type is any of Credit Memo, Customer Deposit, Invoice, Return Authorization, Item Fulfilment 5. Enter other criteria as necessary like Date filter or any other filters as desired to narrow down… Continue reading Saved Search for Sales Orders and Related transactions.
How to remove the Currency symbol using suite script when using the Amount (Foreign Currency) field?
If you want to get rid of all punctuation and symbols from a number field except comma and negative symbol, try this regex
How to insert ‘&’ in Pdf template
Scenario There are scenarios where users want to include the ‘&’ symbol in their Advanced PDF Template. This can be achieved by using a specific line of code. Solution Navigate to Customization > Forms > Advanced PDF/HTML Templates Preferred Advanced PDF Template: Click Edit Upper right corner: Toggle Source Code Source Code: Add the following code in the preferred part of the template: Replace … Continue reading How to insert ‘&’ in Pdf template