Scenario : If the workflow action script is triggering when you create the custom record from the web but not when creating it from the user event script triggered by the creation of a sales order, there may be several reasons why this is happening. Here are a few possible causes: Timing issue: When a… Continue reading Workflow Action Script is not triggered from User Event Script
Month: April 2023
CSV Import > Inventory Transfer > Unexpected Error
Scenario: When processing a CSV Import for Inventory Transfer, and user notice that the Record Type field on the Scan & Upload CSV File page disappears, the system will still allow to proceed by selecting the CSV File to Import and by clicking on Next. Moreover, the Import Options page will only allow the users to use Data Handling = <=””>Add as the other… Continue reading CSV Import > Inventory Transfer > Unexpected Error
Inbound Shipment CSV Import for Matrix Subitem shows CSV Response “An Unexpected Error has Occurred”
Scenario: User is importing Inbound Shipments via CSV Import. Items are noted to be a Matrix Subitem. In the CSV Response, the error states: “An Unexpected Error has Occurred“. Solution: User may encounter error when trying to import a Matrix Subitem in the Inbound Shipments. This is because the Matrix Subitem name in the Purchase Order includes… Continue reading Inbound Shipment CSV Import for Matrix Subitem shows CSV Response “An Unexpected Error has Occurred”
M/R for saving the Records
This is a load and save the records associated with the saved search used in the script. This can be useful if we need to trigger a UE for a large number of records /** *@NApiVersion 2.x *@NScriptType MapReduceScript */ define([“N/search”, “N/record”], function (search, record) { const COMMITTED_SO_SEARCH = “customsearch_temp_prescription_items”; function getInputData() { return search.load({… Continue reading M/R for saving the Records
Unable to Charge Credit Card Transaction Due to an API Call Permission
Scenario Users may encounter error “Unfortunately the Credit Card Transaction Charge Failed > Authentication/Authorization Failed: You do not have permissions to make this API call” when processing a Cash Sale via Credit Card. Solution 1. Login to Merchant Account in Paypal2. Edit Profile3. On Profile Summary Page, click on API Access link4. Click Add or Edit API Permissions link5. Remove existing API permission6. … Continue reading Unable to Charge Credit Card Transaction Due to an API Call Permission
Testcase Documentation – Disable status field in item fulfillment record
Browser specific styling
How to apply style to specific browsers only? To apply style for Mozilla browser, To apply style for safari and chrome, Sometimes in safari, its default styles may appear. So to override that, we can use this method. Use this styling only in necessary conditions.
JavaScript Standard Style
JavaScript Standard Style is a set of guidelines and conventions for writing readable, consistent, and high-quality JavaScript code. It is an opinionated approach to coding, which means that it advocates for specific practices and discourages others. Some of the key features of JavaScript Standard Style are: Automatic code formatting: The style guide specifies rules for… Continue reading JavaScript Standard Style
Client Script Best Practices
The following are best practices for both form-level and record-level client SuiteScript development. General Use global (record-level) client scripts to get a more flexible deployment model and to port (include in a bundle or SuiteCloud project) than client scripts attached to forms. Using SuiteScript modules When you specify the modules that your script uses, make… Continue reading Client Script Best Practices
Advanced PDF/HTML Template Gets An Error: “Expression record.supervisorapproval Does Not Evaluate to True/False” When Printing or Emailing Purchase Orders
Scenario: Error: “Expression record.supervisorapproval Does Not Evaluate to True/False” is returned when Printing or Emailing Purchase Orders using Advanced PDF/HTML Template. The expression record.supervisorapproval is referring to the Standard Supervisor Approval checkbox. If the system couldn’t find a value for this checkbox, whether True or False, then an error will be thrown. Solution: The Supervisor Approval checkbox… Continue reading Advanced PDF/HTML Template Gets An Error: “Expression record.supervisorapproval Does Not Evaluate to True/False” When Printing or Emailing Purchase Orders