<@U9CQ584RE> Have you checked to see if the search...
# suitescript
m
@Beau Have you checked to see if the search is marked public, and that the user accessing it has permission to run it?
👍 1
b
yes it’s public and it’s my saved search I created
oh wait i figured it out, the quotes I was using weren’t normal quotes they were some unicode quote thing
do you know if this is how I would mark a saved search public? I’m actually trying to write a script to make a few hundred saved scripts that are private into public
but my script is loading the saved search results rather than the saves search itself
r
I dont think saved searches are scriptable records.
👍 1
b
Youre right but I am able to pull up the saved search and change its private/public access status with nlapiLoadSearch
r
Good to know
b
here’s how I’m able to change a saved search from private to public, you just need to know it’s external ID and what type of saved search it is: var search = nlapiLoadSearch(‘Transaction’, ‘customsearchID’) ; search.setIsPublic(true); search.saveSearch();
seems like setIsPublic() is really the only field I can change on a saved search, can’t change other fields like the Owner