Is there a way to override premission in script wh...
# suitescript
d
Is there a way to override premission in script when the role cant execute a search with no premissions?
c
Depending on the script type, you can execute the script as a different role
d
in client script i think you cant change it
n
I wonder if you wrote a suitelet and set it to run as admin, then had your client script call that, if it would work. You lose all your client script functionality at that point though. so no live page updates or anything
But if you just needed it to access data that the user doesnt have access to, you could have the suitelet run your search and just return an object of the data you need
d
I need it for validation on client so I guess its impossible
r
You can pass whatever user data you need for validation to the suitelet. Whatever you're doing, it's probably possible.
@Nathan L I didn't follow your "no live page updates" comment. That should also be possible
You probably want
url.resolveDomain
and
url.resolveScript
to create the url and
https.get
or
<http://https.post|https.post>
in the client and
response.write
in the suitelet, if that makes sense.
Then you can process the response of your https call
n
@reptar It was just a bad way of saying what you described. Like sourcing currency and such
r
Oh gotcha