Campaign Classic - Dynamic List Creation

Description

We have a requirement to create a list in ACC dynamically and populate the data into the list.

We tried creating a list using JavaScript activity, the list is getting created. But we are unable to insert the data into the list from JavaScript.

Can you please help us with how we can insert the data into a list from JavaScript.

Resolution

It is possible to use the function below: nms.recipient.RegisterGroup, that is updating the list with recipients:

//List - setting the list object
var entity = entityListkey value=“643475”/
              where
                condition enabledIf=“” expr=“@id = 643475”/
              /where
            /entityList

//Recipient - setting the lits of recipients
var choice = choiceListkey value=“100”/
              where
                condition enabledIf=“” expr=“@id = 100”/
              /where
            /choiceList//add recipients to list

nms.recipient.RegisterGroup(entity,choice,true)

On this page