Anyone know of a way to get the parameters of a ma...
# suitescript
d
Anyone know of a way to get the parameters of a map/reduce deployment via script?
Even better, a way to discovery the value using SuiteQL?
b
use N/record to load the deployment record and treat the parameter as a custom field
e
Here it is in SuiteQL > SELECT * FROM parametersScript WHERE owner=<scriptid>
c
What are you trying to do? Usually the parameters are pretty specific and you want to get them specifically off of the script w/ runtime.
d
@eblackey, that'll tell me what custom field there are .. not the value (I think).
c
Are you trying to do some kind of dynamic parameter stuff?
e
Sorry thought you were just trying to figure out what the params were.
d
@creece, I'm building a dashboard for a Map/Reduce with mutiple deployments
👍 1
A front so non-admins can see what's happening, status of each, and custom values for each.
Gonna be a units-eater ... but there should only ever be 5-6 max deployments
c
I think @alien4u built something like this? I remember him doing something w/ deployments like this.
May be able to summon him and get some insight
d
smoke signal sent to @alien4u
As @battk said, I believe the only way to retrieve a deployments script parameter
value
is to load it.
c
really depends on how you want to do it. You could have each deployment read the values and create a custom record that is then read by the dashboard. There's several ways to do this i think.
d
Ya, trying to be light weight and not replicate data in more custom records. I'm ok with this approach as the number of deployments will be small.
My next favorite thing is .. when doing a search.load ... the
title
parameter is blank. Thanks NetSuite.
c
did you try "name"? sometimes the fields are different
d
nah, that's not a property of search.Search ... thanks though
😞 1
I seem to recall a SuiteAnswer where the search title was NOT retrieveable ... unless you did a search for the search that included the title ... brutal
a
if you've got the search internal id, you can do a searchlookupfields for the title column and get the search name that way
👌 1
which is completely non-intuitive