How to define inbound population in javascript activity. | Community
Skip to main content
Level 2
September 7, 2019
Solved

How to define inbound population in javascript activity.

  • September 7, 2019
  • 3 replies
  • 4924 views

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.
Best answer by shiva_kumarp498

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
September 9, 2019

Hi Shiv,

Hope this document helps you :

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

Regards,
Anita

shiva_kumarp498
shiva_kumarp498Accepted solution
Level 2
September 9, 2019

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.

Anita_punmiya
Level 5
September 10, 2019

Thanks Shiv for sharing the solution.