Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Control groups in A/B winner delivery node

Avatar

Avatar
Level 1
bustert17264389
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
bustert17264389
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
bustert17264389
Level 1

27-04-2021

Hi,

 

I am trying to set up an A/B test using the standard adobe method for campaign classic using the below Javascript,
However, I need to pull through the control group from the workflow which is saved in a list for the delivery node and am unsure how to do this in the below javascript code. Is it also possible to pull through the seed addresses set in the a/b tests as well? 

I followed these instructions and have been able to send the delivery based on the winner but the control groups and seeds are not populating as stated above

https://experienceleague.adobe.com/docs/campaign-classic/using/sending-messages/a-b-testing/use-case...

// query the database to find the winner (best open rate)
var winner = xtk.queryDef.create(
<queryDef schema="nms:delivery" operation="get">
<select>
<node expr="@id"/>
<node expr="@label"/>
<node expr="[@operation-id]"/>
<node expr="[@workflow-id]"/>
</select>
<where>
<condition expr={"@FCP=0 and [@workflow-id]= " + instance.id}/>
</where>
<orderBy>
<node expr="[indicators/@estimatedRecipientOpenRatio]" sortDesc="true"/>
</orderBy>
</queryDef>).ExecuteQuery()

// create a new delivery object and initialize it by doing a copy of
// the winner delivery
var delivery = nms.delivery.create()
delivery.Duplicate("nms:delivery|" + winner.@id)

// append 'final' to the delivery label
delivery.label = winner.@label + " final"

// link the delivery to the operation to make sure it will be displayed in
// the campaign dashboard. This attribute needs to be set manually here since
// the Duplicate() method has reset it to its default value => 0
delivery.operation_id = winner.@["operation-id"]
delivery.workflow_id = winner.@["workflow-id"]

// adjust some delivery parameters to make it compatible with the
// "Prepare and start" option selected in the Delivery tab of this activity
delivery.scheduling.validationMode = "manual"
delivery.scheduling.delayed = 0

// save the delivery in database
delivery.save()

// store the new delivery Id in event variables
vars.deliveryId = delivery.id



Cheers,
Buster

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 5
Level 3
adithyacs86
Level 3

Likes

21 likes

Total Posts

103 posts

Correct Reply

5 solutions
Top badges earned
Affirm 5
Validate 10
Validate 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 5
Level 3
adithyacs86
Level 3

Likes

21 likes

Total Posts

103 posts

Correct Reply

5 solutions
Top badges earned
Affirm 5
Validate 10
Validate 1
Give Back 5
Give Back 3
View profile
adithyacs86
Level 3

27-04-2021

Hi Buster, 

 

I think control groups can be pulled from deliverOperation table - [operation/controlGroup] will be the link to pull from delivery schema. 

 

Thanks,
Adithya