Which permission is this referring to? Your searc...
# suitescript
c
Which permission is this referring to? Your search contains a reference to join for which you do not have a permission: InventoryNumber In an attempt to discover the permission I tried loading a record of type record.Type.INVENTORY_NUMBER and got an error saying I needed Lists > Items, so I added that to my role and then retried the search, but the search continues to fail with the same error ("Your search contains a reference to join for which you do not have a permission: InventoryNumber"). In another attempt to discover the permission I tried a search of type search.Type.INVENTORY_NUMBER and got the same error saying I needed Lists > Items. I don't get the error if I run the script as the Administrator role. P.S. My code is const searchObj = search.create({ type: search.Type.INVENTORY_DETAIL, filters: [ search.createFilter({ name: 'internalid', operator: search.Operator.IS, values: 1 }) ], columns: [ search.createColumn({ name: 'internalid', join: search.Type.INVENTORY_NUMBER }) ] });
b
i dont think you need any special permissions besides the permission to run a search and list items
general permission debugging approach is to do the matching action in the ui
in this case, create your inventory detail search in the ui using the role which you are trying to use
the ui tends to give better errors
if you cant find the record you are trying to use, grab the url from a role that can do it
and use the url in the role that cant
the ui tends to give better error messages when you try to do something you cant
c
Thank you very much
In the UI it works with the same role (unchanged) as it doesn't work with from the script!