Skip to main content
Level 2
Sep 7, 2019 8:57 PM UTC
Solved

How to define inbound population in javascript activity.

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
shiva_kumarp498
shiva_kumarp498Accepted solution
Level 2
Sep 9, 2019 6:38 AM UTC

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.

3 replies

Anita_punmiya
Level 5
Sep 9, 2019 1:06 AM UTC

Hi Shiv,

Hope this document helps you :

https://docs.campaign.adobe.com/doc/AC/en/WKF_Use_cases_A-B_testing.html

Regards,
Anita

Translate
shiva_kumarp498
shiva_kumarp498Accepted solution
Level 2
Sep 9, 2019 6:38 AM UTC

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.

Translate
Anita_punmiya
Level 5
Sep 10, 2019 11:30 PM UTC

Thanks Shiv for sharing the solution.

Translate