Hello Everyone,
We created an SSP Application (SS 2.0) and added a service file (.ss) in the SSP Application folder.
Currently, in the script, we have some test code to update an entity field on a customer record.
We have hardcoded the customer ID for testing purposes.
We have applied elevated permissions to this script, and are executing it as a role which has all necessary permissions.
It has also been marked as 'Execute without Login'.
(We have also linked this SSP Application to an existing domain in our account.)
But, when we trigger the service (using Postman, via the linked domain), it throws the following error:
INSUFFICIENT_PERMISSION
Permission Violation: You need the 'Lists -> Constituents' permission to access this page.
This suggests that the service does not have appropriate permissions to update a customer record.
But we can confirm that the role via which the service is being executed has those permissions already.
It does work sometimes randomly, but most of the times, it fails. And we cannot explain why it fails.
Also, I wanted to ask if this approach of using a service is recommended?
We do have an option of RESTlets in NetSuite but it limits the total number of API calls which can be made to a RESTlet
Thanks!