Have anyone tried to put a json value on a script ...
# suitescript
t
Have anyone tried to put a json value on a script deployment parameter ?
r
Yes, you have to enclose the properties and values in double quotes to be able to make
JSON.parse
work
t
Oh, I see. But can you give me sample of your value inserted on script deployment ? I'm trying this but I get
{
"AllowedRolesToCreateProfielContract":[
1130,
1417,
1216,
3
]
}
i get an error
s
what error ?
t
I'm not receiving any error. Is there any wrong in my parameter ?
s
Are you calling the script from anywhere or you have hardcoded the values in script deployment page ?
t
I do have hard coded values on the default value
Do i need to set the preference of the parameter ? or can I use blank on this
s
I am not sure if you can access the default value..
t
ok thanks @samyt
s
You can try setting it the deployment page of the sciript