AnsweredAssumed Answered

Assign Process Variables from FormVM array

Question asked by Grant Bruneau Champion on Jan 18, 2017
Latest reply on Jan 18, 2017 by Grant Bruneau

Hi Community,


I'm working on a Service Catalog approval process that takes the Approvers from the the form via $form_data_sd_row$ parameter.  I'm having trouble assigning the returned data to process variables.  Initially, I was trying to use $form_data_sd$, however the data was not being passed to PAM and the Process.scFormData variable was NIL.


I've highlighted a value from the FormVM array that I'm trying to assign to a Process Variable.  I've tried several forms of the following for loop, nothing seems to be working.


Any advice is appreciated.  Thanks!


Process.FormVM = convertJson(Process.scFormData);

for (m=0; m<Process.FormVM.length;m++){
  Process.approver1 =Process.FormVM[m].value;