Campaign ID and Label not populating/shown in Email delivery | Community
Skip to main content
Level 5
August 19, 2022
Solved

Campaign ID and Label not populating/shown in Email delivery

  • August 19, 2022
  • 1 reply
  • 1943 views

Hi Team,

 

We want the Campaign Label and ID, to be displayed in an email delivery.

I have created a campaign and used a recurring delivery in the workflow.

 

Inside the delivery template, I am trying to display the Campaign Label and ID. Following code is inserted in the delivery.

 

1. <%= message.delivery.label %>

2. <%= message.delivery.id %>

3. <%= message.delivery.operation.id %>

4. <%= message.delivery.operation.label%>

 

The Delivery ID and Delivery Label is shown correctly, but not the Operation ID and Label, The last 2 shows 0 and blank.

 

Have checked the following already

 

1. While I go to the Campaign Dashboard, I can see the delivery populated and attached.

2 I also queried the broadlogRCP and the nmsDelivery and nmsOperation link and all the details are correct there as well

3. I added a JS Code after the delivery and could see the DeliveryId and OperationId correctly there as well

4. Even if we preview the delivery the Camaign ID and Label shows up correctly 

 

I am at loss to understand, the reason of this showing up as 0 and blank during the mail delivery

 

@amine_abedour, @@_manoj_kumar_  and others, Request your help

 

Regards,

DG

 

 

 

 

 

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 Marcel_Szimonisz

Hello @dipendu_g,
Try this, it might help 

message.delivery.operation_id

 Marcel

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
August 19, 2022

Hello @dipendu_g,
Try this, it might help 

message.delivery.operation_id

 Marcel

dipendu_gAuthor
Level 5
August 19, 2022

Hi @marcel_szimonisz

 

It worked !!! Thanks.

Can you point me to to documentation where I can get the other properties of delivery, like "operation_id" that you mentioned

 

Regards,

DG

Marcel_Szimonisz
Community Advisor
Community Advisor
August 19, 2022

I do not know that if this is documented. but when you have loaded some object, not always the linked  records are accessible. Only what is, is the foreign key and all foreign keys are the way I told you to use <schema_name>_id