RE: Client Script on Suitelet with External URL
Is there a way to run a search.create on a Client Script that is attached to a Suitelet Custom Form that is being accessed via External URL?
I can run the search, but when I try to iterate the results. It says that it has insufficient permission.
Rookie Asked on May 19, 2022 in SuiteScript.
The saved search in a client will always run using the current user and I think this will be highly restricted with an external URL.
Are you able to run the search in the Suitelet instead? Or you can potentially call the Suitelet via https.get to retrieve the data as the Suitelet will run under a different role.
Finally, you may also be able to load an existing saved search that has the Run Unrestricted checkbox checked.