{"custpage_actionfield":"type_trigger","custpage_w...
# suitescript
v
{"custpage_actionfield":"type_trigger","custpage_wf_action":"","custpage_setting_rec_id":"1","compid":"7xxx","whence":"","script":"1234","deploy":"1"} I want to take values from this, how can i do this?
n
Looks like standard JSON with key/value pairs. Presuming you have it as an Object you can do myObject.custpage_wf_action for example If it's a string you will need to JSON.parse() it first.
r
First check the type using
typeof
. Assume that is an object stored as a variable called obj. Then
obj.script === "1234"
is true, as is
obj['script'] === "1234"
.