Below code defines how to set a customer as Sub Customer // 255-internal id of duplicate, 231- parent customer id Using 1.0 Using 2.0 record.submitFields({type: record.Type.CUSTOMER,id: 255,values:{‘parent’:231}})
Author: Hari Krishnan
Sent a Sales Document to the GST Clear Tax portal
Below code shows how to sent a file to the GST Clear Tax portal There are 3 stages to sent a file to the GST Clear Tax portal Get Presigned URL Upload file to Storage Trigger File Ingestion
Merge Duplicate Customer Using script
Solution To merge the duplicate customers through script, use N/task module. Initially search for duplicate records using search.duplicates. This search is working based on the duplication set up on the NetSuite account. You can find duplicate records based on a field or internal id. This will merge record ‘1112’ to the ‘978’ including the transactions… Continue reading Merge Duplicate Customer Using script
Convert Zulu Date format to normal Date format
Solution Example dateString = ‘2024-03-31T07:00:00.000Z’ Code
Proposal Document for Clear Tax GST Integration
One Drive Link: Clear Tax Integration for GST Proposal ABSP-69.docx
Generate Access Token for Clear Tax GST API
Solution> Generate a client secret key from the clear tax account. Go to Settings>Integrations>API client>Create API client Select GST as products> Select Expiration as never expires>click on create A client secret will be generated Then generate access token using the below URL. Send GET request to the url: {{BASE_URL}}/integration/v1/authz/token If it is a SB clear… Continue reading Generate Access Token for Clear Tax GST API
Email Plugin is not triggered through NetSuite Email
While sending a NetSuite email to email plugin, it will not be triggered. Solution Create an outlook email and redirect to the NetSuite plugin email to get the trigger. Send email from NetSuite to this created outlook email. It will get redirected to plugin email and we can retrieve the contents from the email. Setting… Continue reading Email Plugin is not triggered through NetSuite Email
Parsing CSV Contents using Papa Parse
Solution We can parse CSV contents using papa parse library script and update the contents of CSV. Library script is added below (one drive link) papaparse.min.js You can add this script to the file cabinet and add the script to the define function. Sample code shows parsing a csv and updating contents. Converting a column… Continue reading Parsing CSV Contents using Papa Parse
Row splitting in Advanced PDF if the description is lengthy
Solution Below code snippet shows how to split rows of a lengthy description.