const afterSubmit = (scriptContext) => { try { let newRecord = scriptContext.newRecord; let createdFrom = newRecord.getValue({ fieldId: ‘createdfrom’ }) let IFdetails = IFDetailsSearch(createdFrom); log.debug(“IFDetails”, IFdetails) let recordObj = record.load({ type: record.Type.SALES_ORDER, id: createdFrom, isDynamic: true }); let renderer = render.create(); renderer.setTemplateById(109);//internal id the advanced pdf template renderer.addRecord(‘record’, recordObj); // Pass the merged data to the… Continue reading How to pass the object to PDF and create a table in PDF template.
Month: June 2024
User with an administrator role tries to delete an asset and receives a SuiteScript error: This Asset cannot be deleted because it is active for depreciation.
FAM assets with related records that are actively depreciating cannot be deleted. Below are the steps we done to delete the asset record: *Make sure Allow Asset Value Editing box = YES on Fixed Assets > Setup > System Setup (Administrator). Navigate to Fixed asset > Lists > Assets Click Edit beside the FAM asset. Set the following: • Current Net Book Value = 0.00 • Asset Status =… Continue reading User with an administrator role tries to delete an asset and receives a SuiteScript error: This Asset cannot be deleted because it is active for depreciation.
How can you embed two or more components into one in next js?
In Next.js, you can embed two or more components into one by simply importing them into a parent component and then rendering them within the parent’s render method. Here’s an example: Let’s say you have two components: component A and component B. // ComponentA.js import React from ‘react’; const ComponentA = () => { … Continue reading How can you embed two or more components into one in next js?
Logging into NetSuite for Mobile with Single Sign-on
To use Single Sign-on (SSO) with your app, first check with your administrator that SAML (Security Assertion Markup Language) has been enabled for your company. See SAML Single Sign-on for complete setup instructions. Ask your administrator to do the following: Add the Mobile Device Access and SAML Single Sign-on permissions to a custom role, and assign that custom role to you.… Continue reading Logging into NetSuite for Mobile with Single Sign-on
How to configure the development build in index.js in vue.js
vite.config.js import { fileURLToPath, URL } from “node:url”; import { defineConfig, loadEnv } from “vite”; import vue from “@vitejs/plugin-vue”; import { viteSingleFile } from “vite-plugin-singlefile”; export default defineConfig(({ command, mode, ssrBuild }) => { const env = loadEnv(mode, process.cwd(), “”); if (mode === “production”) { return { … Continue reading How to configure the development build in index.js in vue.js
Employee Report with Last Login Date
SCENARIO: Client requires to get an Employee Report with Last Login Date. SOLUTION: Navigate to Setup > Users/Roles > View Login Audit Trail Click Create Saved Search Search Title: Enter Title Example: Employee Last Login Date Search Click Results Field: Note: For every required field use the drop-down menu to select and once adjusted click Add if needed. Select Date Summary Type: Select Maximum Select User Summary Type: Select Group Select Role Summary… Continue reading Employee Report with Last Login Date
Creating Requests – Postman
Creating requests in Postman is a fundamental part of using this powerful tool for API testing and development. Here’s a step-by-step guide to creating requests in Postman: Creating Requests in Postman Open Postman: Launch the Postman application. Create a New Request: Click on the “New” button in the top left corner. Select “Request” from the… Continue reading Creating Requests – Postman
NetSuite for Mobile Biometric ID Login
NetSuite for Mobile supports logging in with a biometric ID. There are some differences in biometric ID types for iOS and Android as described in the following section. Setting up Face and Touch ID login for iOS NetSuite for iOS supports Face and Touch ID. To set up Face and Touch ID login for iOS:… Continue reading NetSuite for Mobile Biometric ID Login
Approve Quotes Created via Web Store
Shoppers are unable to click “Review and Place Order” button on quotes created from the web store. A message is displayed saying: “To complete this quote, the following information is needed: –Sales representative assigned –Sales representative approval –Shipping information“ Solution To remove the displayed message, the Quote must have a Sales Representative, Purchasing Status, & Shipping Method on the Quote Record. Steps to Resolve:… Continue reading Approve Quotes Created via Web Store
Provide mock response data for imports
You can enter mock response data when configuring imports instead of executing a call to retrieve live response data from an import step. The mock response data that you provide for an import applies only to that specific import, including its components such as mapping, transformation, and hooks. If no mock data has been added… Continue reading Provide mock response data for imports