Client is using a custom role for our integration....
# suitescript
b
Client is using a custom role for our integration. He's getting this error when my script is using
nlapiLookupField()
. We're having trouble finding the permission he needs to enable.
Copy code
nlapiLookupField('contact', recordId, 'parent.internalid');
YOUR_SEARCH_CONTAINS_A_REFERENCE_TO_JOIN_FOR_WHICH_YOU_DO_NOT_HAVE_A_PERMISSION: Your search contains a reference to join for which you do not have a permission: Company
n
You have to load the record and then read the value lookup not allowed you to read parent directly
Alternat way search
b
It works fine with the Administrator role
👍 1
So it must be a permission issue, wouldn't you think?
n
Normally every one run the script on administration. Assuming that I suggest
b
Yeah, he wants to restrict what our integration has access to
n
so how can i think?
b
Huh?
Figured it out. He made a new custom role without telling me, and he forgot to set that new role on the RESTlet.
The integration was still using the old role.