When you use custom records with Scriptable Cart, you may encounter permission errors when adding items in the shopping cart, or when attempting to check out. In most cases, careful review of the custom record you created, and the code in your script can resolve the problem.
- Check the custom record carefully:
- Verify that the Use Permissions box is marked.
- Clear the Include Name Field box on the Custom Record Type page for custom records that are created by your script.
- Clear the following boxes: Allow Attachments, Show Notes, Enable Mail Merge.
- On the Permissions subtab, set Level to Full for the following roles: Administrator, Customer Center, Shopper.
- Review your script to verify that the record type ID you reference in your script matches the record type ID on the custom record in NetSuite.
- Verify that the column IDs you reference in your script match the column IDs on the custom record in NetSuite.
- Verify that you are correctly handling the true or false value returned in validation scripts. You must return either a true or false value in every case.
- Ensure that you use the correct search operators when creating a search filter for custom records in your script.(you may need to use “anyOf” instead of “equals.” Note that the type of column you are searching may only support a specific set of search filters. )