I have a context like below, from this, i want to ...
# suitescript
v
I have a context like below, from this, i want to get the value of the custpage_setting_rec_id, how can i take? {"request":{"type":"http.ServerRequest","method":"POST","url":"KKKKKKKKKKKKK","parameters":{"nlloc":"0","nlsub":"26","_button":"", "nsapiFC":"","wfVF":"","nlapiVF":"","sublist_idfieldsets":"1","externalid":"","nlapiRC":"", "_eml_nkey_":"7116280_SB2~8150~3~N","nlapiVI":"","type":"suitescriptform","inpt_custpage_wf_action":"Approve","nlapiVD":"","deploy":"1","nsapiRC":"","customwhence":"","nsapiVF":"", "sublist_idsortidx":"11","nsapiVD":"","nlapiVL":"","nsbrowserenv":"istop=T","nextsublist_ididx":"15","id":"","nsapiVL":"","nlapiFC":"","nsapiVI":"","custpage_actionfield":"", "sublist_idflags":"4\u00010\u00010\u00010\u00010\u00010\u00010\u00010\u00010\u00010\u00010\u00010","wfPS":"", "entryformquerystring":"script=1479&deploy=1&compid=7116280_SB2&custpage_actionfield=type_trigger&custpage_wf_action=Approve&custpage_setting_rec_id=1", "script":"1479","custpage_setting_rec_id":"1","submitted":"T"}}
w
Looks like a https.serverRequest-object? Just use reqObj.parameters[‘the_parameter_name’]?
v
both shows error
w
How and where are you using this?
v
yes the second one is correct. its my mistake, sorry. As well thank you