Avatar

Correct answer by
Community Advisor

Hi Maurizio,

If your need is to achieve this treatment in a workflow, I rather recommend you to use the OOTB "List update" activity.

Please see documentation:
How to use workflow data
Targeting activities

If you still need Javascript code to do the same for another reason, you can use the JSAPI nms.recipient.RegisterGroup function.
Please refer to the  JSAPI.chm documentation (restricted to license) for details.

Regards
J-Serge

View solution in original post