Dynamic list creation in Campaign Classic
To create a list in Adobe Campaign Classic dynamically and then populate data into the list, consider using the nms.recipient.RegisterGroup
function as described in this article.
Description description
Environment
- Campaign Classic
- Campaign
Issue/Symptoms
After creating a list using JavaScript activity, you are unable to insert the data into the list from JavaScript. How to insert the data into a list from JavaScript?
Resolution resolution
Use the function nms.recipient.RegisterGroup
given below to update the list with recipients:
//List - setting the list object
var entity = <
entityList>
<
key value=“643475”/>
<
where>
<
condition enabledIf=“” expr=“@id = 643475”/>
<
/where>
<
/entityList>
//Recipient - setting the lits of recipients
var choice = <
choiceList>
<
key value=“100”/>
<
where>
<
condition enabledIf=“” expr=“@id = 100”/>
<
/where>
<
/choiceList>
//add recipients to list
nms.recipient.RegisterGroup(entity,choice,true)