In my email, I am calling a Content Block. The content block uses a lookup to pull out content from a Data Extension.
Example code in content block:
set @SourceDE = "DE_NAME"
set @subjectLine = Lookup(@SourceDE,"subl","locale",@locale)
..........similarly pulls out other content like pre-header, header text etc. from SourceDE
I call this block from my email. This method works perfectly.
But what I want now is that I should be able to change the source DE in email and not in Content Block. Then from the email the source DE should be dynamically set in Content Block.
expected outcome
In email
set @SourceDE = "NEW_DE_NAME"
In content block
set @subjectLine = Lookup(@SourceDE,"subl","locale",@locale)
Content block should fetch the Data Extension name from the email
So by doing this I can change the name of the source DE directly in the email & also re-use the content block for other emails.
Please can anyone help me how to do this?