Push group approval via workflow scratchpad

Puru2
Tera Contributor

Dear All,

 

I am trying to push a group approval via scratchpad variable from Workflow.

Here is the snippet :

gs.log('Groupp ID is : '+workflow.scratchpad.chkGroup);   //contains sys_id of required group
var answer = workflow.scratchpad.chkGroup;

 

 

The above snippet is in *Approval - Group* activity of Workflow.

However, approval is not being pushed in the system.

 

Can anyone please suggest ?

 

Best Regards,

Puru

1 ACCEPTED SOLUTION

Rohit Kaintura
Mega Guru

Try this:

 

var answer = [];
answer.push(workflow.scratchpad.chkGroup);

 

 

Please, mark my answer correct and helpful if it helped you.

View solution in original post

1 REPLY 1

Rohit Kaintura
Mega Guru

Try this:

 

var answer = [];
answer.push(workflow.scratchpad.chkGroup);

 

 

Please, mark my answer correct and helpful if it helped you.