0

I use the following to get the content block in Content Builder.

%%=ContentBlockbyId("5642")=%%          

So, can I make the id field ("5642") a column in my Data Extension table, so I can send different html blocks to people?

1
  • Please give it a try and update your question if you get stuck. Jan 10 '18 at 22:47
0

I figured out myself. I will post my answer here if anyone has similar issue in the future.

%%=ContentBlockbyId(TreatAsContent(
Lookup('test_non_sendable','html_id','creative_uuid'
,creative_uuid)))=%%

'test_non_sendable' is my data extension name. So, this function will look up the 'html_id' in this table and swap out the value based on the creative_uuid of the sendable data extension.

1
  • Would contentareabykey() not be easier? You could set the content box external key as the value of creative_uuid and just retrieve the box eliminating the need for a DE lookup?
    – Gravitai
    Jan 11 '18 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.