Expand my Community achievements bar.

SOLVED

How to define inbound population in javascript activity.

Avatar

Level 2

Dear Members,

I am writing a workflow in Adobe Campaign for A/B testing, but this flow will be executed many times, I can use recurring/continuous deliveries for A/B templates but when it comes winner deciding template I have to use the delivery coming from the inbound transition. I cannot achieve this by using recurring/continuous deliveries. Can you please tell me how this can be achieved using javascript activity, basically I am looking for a code snippet to define inbound target population in javascript.

Thanks,

Shiv.

1 Accepted Solution

Avatar

Correct answer by
Level 2

I figured it out, I am using the below script-let after getting the target population by querying targetSchema

nms.delivery.SubmitNotification(delivery.internalName, <delivery> <targets> <deliveryTarget> <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'> <where> <condition expr={'@id in ('+ comaSepId + ')'}/> </where> </targetPart> </deliveryTarget> </targets> </delivery>)

Thanks for the response though and I got to know that this can also be achieved by setting activity.scenario_id  in continuous delivery activity.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 2

I figured it out, I am using the below script-let after getting the target population by querying targetSchema

nms.delivery.SubmitNotification(delivery.internalName, <delivery> <targets> <deliveryTarget> <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'> <where> <condition expr={'@id in ('+ comaSepId + ')'}/> </where> </targetPart> </deliveryTarget> </targets> </delivery>)

Thanks for the response though and I got to know that this can also be achieved by setting activity.scenario_id  in continuous delivery activity.

Avatar

Level 7

Thanks Shiv for sharing the solution.