Hi all, I'm trying to use the Standard Tools like ...
# ai-netsuite
a
Hi all, I'm trying to use the Standard Tools like "ns_getRecordTypeMetadata" and "ns_updateRecord", and I'm getting this error: {"success":false,"error":"API call failed: Access to this URL is restricted.","message":"Failed to retrieve metadata for customer endpoint: /services/rest/record/v1/metadata-catalog/customer"} I have all the required permissions, and these tools worked before with the same role. Has anyone experienced the same issue?
r
Try using the /all endpoint instead of the /customer endpoint
a
Yes, i'm using /all endpoint
r
Ok maybe double check since your error has /customer
a
What do you mean by "/customer"? A specific SuiteApp? I tried it using "https://<accountid>.suitetalk.api.netsuite.com/services/mcp/v1/all" and the standard URL "https://<accountid>.suitetalk.api.netsuite.com/services/mcp/v1/suiteapp/com.netsuite.mcpstandardtools".
Think I get what you mean — that endpoint, the one throwing the error, is being generated by the AI itself when it calls the "ns_getRecordTypeMetadata" tool. I'm hitting the same issue with the update record tool too. With that one I get this error: {"success":false,"error":"API call failed: Access to this URL is restricted.","message":"Failed to update customer record"}
The weird part is that using the "ns_runCustomSuiteQL" tool, I can access customer data just fine, so the role's permissions to access the record are clearly fine
m
It should be something like this.