Resolve Error: “SSS_INVALID_SRCH_OPERATOR” on RESTlet

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

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

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 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