Executing a RESTlet on Click via User Event Script Button

To call a RESTlet and execute it as an Administrator from another script, the call should come from a server-side script so the user credentials which includes the Role can be specified. When calling a RESTlet from a custom button created from a User Event script, a series of scripts need to be triggered in order… Continue reading Executing a RESTlet on Click via User Event Script Button

Update financial status in shopify

Update order with an authorization transaction. curl –location –request PUT ‘https://2e997fc7333f89646ddf76a558f86aae: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@test-graph-tech-trade.myshopify.com/admin/api/2022-07/orders/4487046627525.json’ \–header ‘Accept: application/json’ \–header ‘Content-Type: application/json’ \–data-raw ‘ {“order”:{“transactions”: [            {                “amount”: “16.45”,                “kind”: “authorization”,                “status”: “success”            }        ]}}’ Get list of transaction for that order for getting transaction details (We need transaction ID) curl –location –request GET ‘https://2e997fc7333f89646ddf76a558f86aae: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@test-graph-tech-trade.myshopify.com/admin/api/2022-07/orders/4487046627525/transactions.json’ Create a new transaction and in body field just use transaction… Continue reading Update financial status in shopify

Create work order from SO (Error: You must enter at least one line item for this transaction)

Scenario Upon saving a Sales Order where Create WO column = True and Advanced Bill of Materials feature is enabled, users may encounter the error message: “You must enter at least one line item for this transaction” Solution Normally, this error is encountered when there is no Bill of Materials record that has been marked as Master… Continue reading Create work order from SO (Error: You must enter at least one line item for this transaction)

User License Count

Navigate to Setup > Company > View Billing Information 2. Check the following licenses Advanced Partner Center Employee Center Full Licensed Users Retail User WS Concurrent User 3. Compare the Current Provisioned Qty column and Current Used Qty column Note: Current Used Qty should always be equal or less than the Current Provisioned Qty column to Edit and Save an existing Employee Record. If Current Used Qty column… Continue reading User License Count

Email Capture Plugin Setup In NetSuite

To verify if the attachment was saved successfully on File Cabinet: Navigate to Documents > Files > File Cabinet Click the specified folder on script from Step #2 Enable Server SuiteScript feature: Navigate to Setup > Company > Enable Features Click SuiteCloud SuiteScript:  Server SuiteScript: Enter Checkmark Click Save Create the Implementation Script file. Sample script below: function process(email) { nlapiLogExecution(‘DEBUG’, ‘EMAIL PLUGIN… Continue reading Email Capture Plugin Setup In NetSuite

Get Contents From EXCEL file

We need to use external library for access contents from excel file. Needed CDN Link : https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js Upon opening the link will show javascript code, copy the code and create a JS file and save it in file cabinet. (ex: EXCEL.js) Create a config.json file with content path reference to the created JS file. {… Continue reading Get Contents From EXCEL file

Add External Library/CDN in SuiteScript

Import a third-party library Some third-party libraries register as AMD compatible in which case, you can specify a require configuration that sets up the path where the module is found. For example, you can create a JSON configuration file (JsLibraryConfig.json) containing the following code and save it in the File Cabinet: { “baseUrl”: “./”, “paths”:… Continue reading Add External Library/CDN in SuiteScript

How to disable link from in built libraries of HTML

We need to inspect the html and need to find out the id of the link attached tag. If it is an <a> tag then write the below code in styles for disable it <style> #qr-reader div span a { pointer-events: none; } </style> Or can disable every clickable links by below code.