RE: Client Script on Suitelet with External URL

Hello,

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.

raffysucilan Rookie Asked on May 19, 2022 in SuiteScript.
Add Comment
1 Answers

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.

Intermediate Answered on May 23, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.