Send out not linked to a campaign | Community
Skip to main content
Level 4
November 14, 2023
Solved

Send out not linked to a campaign

  • November 14, 2023
  • 1 reply
  • 1582 views

Hello!

I have a problem, we see in the systemet that we have some deliveries (send-outs) that are not linked to any campaign. 

The workflow that triggers these deliveries is in a campaign and nothing seems wrong but when I look in the Delivery folder I noticed that they are not linked to any campaign:

 

When I look in the Campaign dashboard those deliveries do not appear there either.

This is the delivery node:

 

Execution folder and Folder of the delivery template is the same as for other deliveries. Same for the workflow, it has the same folder as the other wkfs.

 

This is a delivery that is showing both the campaign and target (wkf) linked to it as it should be (image taken from the Deliveries folder):

 

Here can you see the one that I am talking about and which is not showing any link:

 What am i missing?

 

 

Best answer by ParthaSarathy

Hi @a_b_se ,

Open the delivery activity and in script tab, paste the below code and Run the campaign.

 

delivery.operation_id = instance.operation_id;

 

This delivery activity which you used, calls the delivery template and its not linked with any campaign or workflow. That is the reason, the delivery gets created in the correct execution folder mentioned in delivery property and this is an expected behavior. So, to map the delivery and campaign, the above script needs to be executed.

You can also find the same scenario when you use a continuous delivery activity and calling a delivery template in it.

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
November 14, 2023

Hi @a_b_se ,

Open the delivery activity and in script tab, paste the below code and Run the campaign.

 

delivery.operation_id = instance.operation_id;

 

This delivery activity which you used, calls the delivery template and its not linked with any campaign or workflow. That is the reason, the delivery gets created in the correct execution folder mentioned in delivery property and this is an expected behavior. So, to map the delivery and campaign, the above script needs to be executed.

You can also find the same scenario when you use a continuous delivery activity and calling a delivery template in it.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
A_B_SEAuthor
Level 4
November 14, 2023

Hello,

 

When I look to those deliveries that have a link they do not have any code in the script tab. Why? I am using the exact same delivery node (no continuous delivery) and almost every delivery gets a link but some don't.

 

I'm assuming this code will solve the issue for those specific deliveries if i re-run them but I would like to know why this problem occurs and fix it without including this code in every delivery node.

A_B_SEAuthor
Level 4
November 15, 2023

Hello and thank you for your answer.

We do not use delivery nodes from the Deliveries tab you are showing, we just use the other ones in the Action tab and they usually work fine (without adding any code/script):

 


So is this just a bug or why does it happen to some deliveries? As I said we are using always the same nodes.