Skip to main content
Level 5
May 5, 2023 6:47 AM UTC
Solved

Get the Actual Subject of the Email Delivery in Broadlog

Hi All,

 

I tried to follow this thread - specially the points mentioned by Jonathon_wodnicki

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/how-to-change-a-subject-line-script-into-an-actual-subject-line/m-p/401413

 

Point No - 1, I completed.

I need help on Point 2 and Point 3, specially Point 3, as I am unable to understand the place where I need to do that activity and what needs to be done

 

 

We have over 100 emails send everyday by different campaign managers. Can we have a generic solution where subject of every email send is automatically captured without any specific coding to be done by Campaign Managers  .

 

Request if somebody can help me on this.

 

@jonathon_wodnicki , @darren_bowers 

 

Regards,

DG

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParthaSarathy
ParthaSarathyAccepted solution
Community Advisor
May 5, 2023 10:25 AM UTC

There might be use cases, where you will be storing subject line in variable.

example, defining variable in JS activity before delivery

like, vars.subjectLine = 'Subject line of delivery';

So, followed by this JS activity,  add enrichment, and to call the previously created Vars, you need to use the syntax $string([vars/@subjectLine])

 

Enrichment: Use same Alias.

And delivery subject line configuration is same as above method.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups

3 replies

ParthaSarathy
Community Advisor
Community Advisor
May 5, 2023 8:55 AM UTC

Hi @dipendu_g ,

If you try to get subject line from [delivery/mailParameters/subject], then you will be getting what you had configured in Delivery, but can't get personalized subject line content.

If Subject line in delivery is, Hi <%= recipient.firstName %>

Then it will be stored as 'Hi <%= recipient.firstName %>' in [delivery/mailParameters/subject], instead of 'Hi Dipendu'

 

So as per above mention thread, Jonathon solution was,

1) create a new attribute in broadLogRcp schema

(Label: Subject Line, internalName: @subjectLine, data type: string)

2) In Target mapping, (for recipient, mapRecipient), go to mapping tab > storage > Additional fields > Add

Source Expression: [targetData/@subjectLine]

Destination: select @subjectLine

3) When creating a campaign, create additional data in query/enrichment and add subject line as additional data and giving Alias to it as @subjectLine

 

4) In delivery, give subject line as <%= targetData.subjectLine %>

 

So, now in broadLogRcp schema,

[delivery/mailParameters/subject] will be <%= targetData.subjectLine %>

@subjectLine will be 'Hi Partha, This is the Subject Line'

 

 

 

Translate
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
dipendu_gAuthor
Level 5
May 5, 2023 9:11 AM UTC

Hi @parthasarathy, Thanks for such a detailed reply. Really awesome.

 

Just one question - In that article there was another option with $string([vars/@subjectLine]) -> @subjectLine.

How can this be achieved. Where can we set this value ?

 

Regards,

DG

Translate
ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
May 5, 2023 10:25 AM UTC

There might be use cases, where you will be storing subject line in variable.

example, defining variable in JS activity before delivery

like, vars.subjectLine = 'Subject line of delivery';

So, followed by this JS activity,  add enrichment, and to call the previously created Vars, you need to use the syntax $string([vars/@subjectLine])

 

Enrichment: Use same Alias.

And delivery subject line configuration is same as above method.

Translate
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups