This message was deleted.
# suitescript
s
This message was deleted.
b
code?
a
Sorry my bad
The issue wasn't related to that The issue is it will not go through that check
Because the user doesn't have permission to search
@battk is there any way to run search client script as admin?
b
no, the normal tool for permission escalation is to create a suitelet to do the work for you
a
Many thanks
@battk If I create a search in the suitelet and run that search the result is an object like this {columns: [{first column}, {second column}]} Can I return this from suite let and getValue from?
Or have to get the value in suitelet and return the final value from suitelet
I'm trying to make that suitelet a general search suitelet
b
your suitelet will return what is basically a string
you can make it a json string if you want to serialize or deserialize it using the global JSON object
JSON wont have methods like getValue
a
So we can't
Make that suitelet
A general search suitelet?
So you can pass type, columns, filters and it will give you the result
Any suggestions for that
b
You can make a general search suitelet if you wish, its a terrible idea data security wise