```//output "[]"``` i dont understand, i have loa...
# suitescript
r
Copy code
//output 
"[]"
i dont understand, i have loaded the search and getValue the way i would in any other script.. why wouldnt it work?
b
are you so sure that there are search results that you arent logging it?
r
nothing is logging
i have put a debug to 'hey' after try{ , nothing
b
check the debug level on the script deployment
releasing a script deployment changes the debug level
r
yeah now its showing, 0 length of my saved search ...although there are 3
i have ran a scheduled script on it successfully ,,idk why this isnt working
b
run the search in the ui using the same role and user as whatever you are using for your access token
r
yeah, it had permission problem.. i checked 'UNRESTRICTED' on result on saved search and it worked
cant i assign core administration permission to this role which has access token
or do i have to manually assign every permisson there is?
because somebody told me that access token dont work my administration role
b
one doesnt work with administrator
r
yeah, but can i give core administration permission with this? so it will directly have access to everything except a few
b
core administrator is available to suitescript, though i imagine its a lot easier to try this yourself than asking