Posts

Showing posts from March, 2024

SuiteTips: Field Length Limits in NetSuite

 Field Length limits  Sometimes we come across situation where field length in netsuite pose a major problem when other application is sending data of any length but netsuite has fixed limit for each field type. Hence listing them down: Currency- 15 Digits and a Maximum of 15 decimals Decimal- 20 digits Email- 254 Characters including @ and . Number - 20 digits Freeform- 300 Characters Hyperlink- 999 Characters Long Text- 100,0000 characters Phone Number- 32 Characters Rich Text- 100,000 Characters Detailed Description- 1,000,000 Characters Text Area - 4,000 characters URL fragment - 200 characters password - 15 characters Customer Name -  83 characters Vendor Name - 83 characters Name fields on custom record - 300 characters

NetSuite : How to Call a Suitelet from MapReduce

 How to Call a Suitelet from MapReduce There are situations when we have to call a suitelet from Mapreduce possibly to trigger it and get a response from it. There was a scenario for customer where I had to call a PDF suitelet in order to read the contents of PDF and send it customer as batch job. So I used below API to do the work. Code in Suitelet Suitelet is doing the job of saving the PDF in filecabinet var fileObj = file.create({ name: 'invoice_' + invoiceId + '.pdf', fileType: file.Type.PDF, contents: pdfFile.getContents(), folder: folderId }); var fileId = fileObj.save(); context.response.setHeader({ name: 'Content-Type', value: 'application/pdf' }); context.response.setHeader({ name: 'Content-Disposition', value: 'inline; filename="invoice_...

Test Set-Up of TBA- Token based Authentication in Netsuite

Image
  As Token Based authentication is of increasing demand nowadays I thought of penning down steps to setup Token Based Authentication in netsuite. Create a Role First things first create a role which will play major role in Token Based Authentication for any integration Make sure to provide below roles to the role so that integration doesn't fail Now in other tabs add all those tranasctions or custom records on which this role should have access to add or modify the record. Note: As you might know Adminstrator role cant be used to basically for integration because admin role should mandatorily have two factor authentication. Create a User Now create a integration user which will be then assigned the role which we created earlier. Configure the Integration Now setup the integration by going to Setup-> Integration -> Manage Integrations Create the integration by the name of application with which netsuite will be connecting to and select Token Based Authentication in Authenticat...