irurzo
09/29/2018, 4:29 AM"{\"author\":57524,\"subject\":\"ACH test\",\"recipient\":\"19205\",\"body\":\"This amount has been deposited to your account: $ 100.00\"},{\"recipient\":\"16365\",\"body\":\"This amount has been deposited to your account: $ 600.00\"}"
I want to parse this to use the object but I cant, do you know how can I do this? This string comes from a client (PARAMS.payedVendorBills.push(JSON.stringify(emailData))
), that I send to the suitelet (objParams.emails = context.request.parameters.payedVendorBills;
, var paramsTask = { 'custscript_vendor_email_data': parameters.emails };
, task.create({ taskType: task.TaskType.SCHEDULED_SCRIPT, params: paramsTask});
) and then to the scheduled (var emailsParam = runtime.getCurrentScript().getParameter({ name: 'custscript_vendor_email_data' });
)