Hi, I am wondering can I not really get the value of a parameter if I don't set preference on my script deployment parameters?
m
mayerlench
08/24/2020, 1:37 PM
If you dont set the parameter then whatever the parameter is set to on the script deployment will be what you get from the getParameter function
t
Tyn Guardian
08/24/2020, 1:40 PM
Ok, I made some few changes. But my problem now is, it dont accept my json value as default value.
m
mayerlench
08/24/2020, 1:41 PM
The preference is used to determine where the parameter should be set
Company = One parameter is set for the whole company in general settings > Custom preferences
User = Each user sets the parameter in their user settingsNo Preference = The parameter is set on the script deployment
👍 1
mayerlench
08/24/2020, 1:43 PM
@Tyn Guardian if you want to set a text field to json the you need to JSON.stringify(myJsonObject)
mayerlench
08/24/2020, 1:44 PM
When you read the field you then need to call the JSON.parse(myText) as well