Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

operation-id (Campaign) link is empty for Continuous Deliveries

Avatar

Level 9

I have noticed that @Operation-id is "0" for all Continuous deliveries. Normal deliveries or recurring deliveries have the @Operation-id link to the parent campaign as normal. These then have blank Campaign values over in Analytics, so analysts have to do different searches to wrap up deliveries at the Campaign level.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/looking-for-delive...

Is this expected or a bug?

If its expected, what is the reason for not having the Campaign link on the continuous delivery?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Darren,

 

It's expected for deliveries under actions tab as they can be use in standalone workflows (workflows not linked to a campaign).

If you need to attached them just add a js activity after the delivery and write a code.

delivery.operation_id = instance.operation_id;

Thanks

David



David Kangni

View solution in original post

7 Replies

Avatar

Correct answer by
Community Advisor

Hi Darren,

 

It's expected for deliveries under actions tab as they can be use in standalone workflows (workflows not linked to a campaign).

If you need to attached them just add a js activity after the delivery and write a code.

delivery.operation_id = instance.operation_id;

Thanks

David



David Kangni

Avatar

Level 9
Thanks @DavidKangni - Surely a delivery can tell if there is a parent Campaign to associate itself with? Having to add Javascript to every continuous delivery workflow, seems kind of...hacky?

Avatar

Community Advisor

Hi Darren,

DavidKangni_0-1590528165305.png

deliveries under Deliveries tab are automatically attached to Campaign. But deliveries under actions tab are not automatically linked as you can linked them in the technical workflows.

So if you want to use them in a campaign, then you need to use a code.

 

Thanks

David



David Kangni

Avatar

Level 1
Hey, The continues delivery dont have a delivery delivery script so where should i put that code?

Avatar

Level 1
the code doesnt work if i put in a java script activity after the continuous delivery: delivery.operation_id = instance.operation_id;

Avatar

Level 9

@DimitrisChatzosThe full code you need to insert after the delivery is

var delivery = NLWS.nmsDelivery.load(vars.deliveryId);
delivery.operation_id=instance.operation_id;
delivery.workflow_id=instance.id;
delivery.save();