Campaign Classic - Dynamic List Creation

Description

Environment

  • Campaign Classic
  • Campaign

Issue/Symptoms
How 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.

How to insert the data into a list from JavaScript?

Resolution

Use the function nms.recipient.RegisterGroup given below to update 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