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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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.
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.
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.
Views
Replies
Total Likes
@A_B_SE , It's an expected behavior for delivery activity under actions tab,
Deliveries under 'Deliveries tab' are automatically attached to Campaign (You cannot able to see these 'Deliveries tab' deliveries in a standalone workflow).
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 (Action tab's delivery activity) in a campaign, then you need to use the code to link the delivery with campaign.
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.
Views
Replies
Total Likes
@A_B_SE , its not a bug. Its an expected behavior.
If you use this activity,
Then we have to add the below script in script tab
delivery.operation_id = instance.operation_id;
If you use continuous delivery activity, place a JavaScript code activity next to continuous delivery and add below script in it.
var delivery = NLWS.nmsDelivery.load(vars.deliveryId);
delivery.operation_id=instance.operation_id;
delivery.workflow_id=instance.id;
delivery.save();
Hello just to add to above, the first scenario you should also link workflow to campaign is also not done automatically with this activity.
Also i thought this is the only activity that is not linking these two. Rest should work. did no know also continuous delivery is not linking it
Marcel
Thanks Marcel for adding the Workflow linking point. So, @A_B_SE you can add the below code in script tab to link both campaign and workflow to the delivery,
delivery.operation_id = instance.operation_id;
delivery.workflow_id = instance.id;
Views
Likes
Replies
Views
Likes
Replies