without it being a company preference, how can I g...
# suitescript
s
without it being a company preference, how can I grab a script parameter from another script?
Apparently writing it on here was the key I needed. Solution I created is below. I wish I could use the script id, but it wouldn't let me unfortunately
Copy code
var myRec = record.load({ id: 3422, type: record.Type.SCRIPT_DEPLOYMENT });
return myRec.getValue("custscript_ad_req_land_cost_categories")
👍 1
r
You can use a search to get the script deployment record from the script and get the values.
s
I get an invalid column when I try to pull back the parameter
r
Try the customFormula. I am not too sure on that though.
s
Yeah, field not found. I just did {custscript_ad_req_land_cost_categories}
r
then you will have to load it and use it as you did earlier
n
You might want to do a search to identify the deployment id though as it's potentially different across environments. 😉