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.
Add Comment
1 Answer(s)

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.

Advanced Answered on May 23, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor