Scenario: User has a RESTlet script that is getting the value of the dynamic filter from the request parameter. However, user is getting an error: “SSS_INVALID_SRCH_OPERATOR”. When the script operator parameter value is hard-coded, error is not reproducible. Solution: The reason why the error: “SSS_INVALID_SRCH_OPERATOR” is encountered when using script parameters as search operator is… Continue reading Resolve Error: “SSS_INVALID_SRCH_OPERATOR” on RESTlet
Tag: restlet
Call a RESTlet from a Client script
As stated in the Help Guide, authentication is required for RESTlets. However, in cases where a RESTlet is called from a client hosted by NetSuite, the authentication headers are no longer required. When calling a RESTlet from a Client script, the following code may serve as a guide: var url =’/app/site/hosting/restlet.nl?script=380&deploy=1′; var headers = new Array(); headers[‘Content-type’]… Continue reading Call a RESTlet from a Client script
Resolve Invalid Login Attempt Error on Restlet
Scenario: When we send request from Postman, sometimes it will show error as “Invalid Login attempt”. Solution: Login to the Postman. Under the Authorization tab, make sure that the account id is properly added.
Delete Record using RESTlet Script
The doDelete function is executed when a DELETE request is sent to the RESTlet. It takes requestParams as a parameter, which contains parameters from the HTTP request URL. The doDelete function handles DELETE requests. It extracts the id parameter from the requestParams. It uses the record.load function to load a Vendor record based on the… Continue reading Delete Record using RESTlet Script
Restlet to create Credit Memo
Restlet for creating Invoice
The following script creates invoice in Netuite based on the request values provided from Salesforce. Also these invoice will have a pay-by-link URL autogenerated( the script trigger the Adyen Bundle to generate the link)
Custom segment applied to Entity and Transaction records, not fetched on Restlet
When the Restlet script tries to fetch a Custom segment from an Entity record or transaction record, an error is thrown showing that it is an invalid field. If the Restlet is set up on a custom role, and you have added all the permissions for this role, then the next place that you have… Continue reading Custom segment applied to Entity and Transaction records, not fetched on Restlet
Item Receipt Creation Through Restlet
The clients requires a restlet API to create an item receipt for a PO.
Send PDF files using Restlet endpoints
The solution is send the PDF file base64 content as in Restlet script response. The logic for sending base64 content. let pdfFile = genPDF(); // Replace this with your PDF generation logicreturn { fileName: pdfFile.getName(), fileContent: pdfFile.getContents() };
Restlet script to enforce the Item details from NetSuite
Jira Code : MICL-180