在Campaign Classic中建立動態清單
若要在Adobe Campaign Classic中動態建立清單,然後將資料填入清單中,請考慮使用本文所述的nms.recipient.RegisterGroup函式。
說明 description
環境
- Campaign Classic
- Campaign
問題/症狀
使用JavaScript活動建立清單後,您無法從JavaScript將資料插入清單。 如何將資料從JavaScript插入清單中?
解決方法 resolution
使用下面指定的函式nms.recipient.RegisterGroup更新包含收件者的清單:
//List — 設定清單物件
var entity = < entityList> <索引鍵值="643475"/>
<,其中>
<狀況已啟用If=" expr="@id = 643475"/>
< /where>
< /entityList>
//Recipient — 設定收件者清單
var choice = < choiceList> <索引鍵值="100"/>
<,其中>
<狀況已啟用If=" expr="@id = 100"/>
< /where>
< /choiceList> //新增收件者至清單
nms.recipient.RegisterGroup(entity,choice,true)
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f