Avatar

Community Advisor

Hello,

i am struggling to implement nmsGroup.Register(xml recipientlist)


Does anybody know what format it takes there is nothing in documentation:

https://experienceleague.adobe.com/developer/campaign-api/api/sm-group-Register.html?hl=register

 

Workaround was to use another function from recipient schema:

https://experienceleague.adobe.com/developer/campaign-api/api/sm-recipient-RegisterGroup.html?hl=reg...

 

 

//List
var entity = <entityList><key value="24447964"/>
              <where>
                <condition enabledIf="" expr="@id = 24447964"/>
              </where>
            </entityList>
 
//Recipient
var choice = <choiceList><key value="18995462"/>
              <where>
                <condition enabledIf="" expr="@id = 18995462"/>
              </where>
            </choiceList>
nms.recipient.RegisterGroup(entity,choice,true)

 

 

I am wondering if i have to use something similar to this. Anyway little more documentation would be nice to have.

 

Any advice will be appreciated

Marcel