0

I have an Email that contains various ContentBlockbyID references. The Email looks fine when I open it in send/preview. But in view mode in content builder or when I configure it in a Journey, I only see the code like

%%=ContentBlockbyID("583")=%%%%=ContentBlockbyID("586")=%%%%=ContentBlockbyID("587")=%%%%=ContentBlockbyID("588")=%%%%=ContentBlockbyID("517")=%%

I would actually expect that the code gets rendered. Any hint?

2 Answers 2

0

Try using the new Reference block that was added in the August release. It accomplishes the same thing (and it actually uses that same AMPscript function), but it will render the block in the Content Builder editor when you're editing a template or email.

3
  • It is exactly what I am using. And is totally fine when editing. But it is a blocker for my client not to have this rendered view in the journey builder as well. People think that the Email is broken when they only see ContentBlockbyID code snippets. In addition not everybody has the the needed access rights to edit. Therefore they have no chance to see what the Email looks like.
    – Ado
    Commented Sep 5, 2017 at 14:40
  • OK, thanks for that info. I'll pass it along to the Journey Builder team.
    – Don Owens
    Commented Sep 6, 2017 at 17:21
  • Thanks. Also the "Engagement decisions" links cannot be used within the JB anymore if working with the ContentBlockbyID. Therefore no option to use it as of now.
    – Ado
    Commented Sep 7, 2017 at 8:48
0

The system processes the AMPscript at the point where you include it in the message to render content on a subscriber-by-subscriber basis.

Salesforce Marketing Cloud application handles all AMPscript calls at the end of the email send/send preview whereas during the view mode/Journey configuration the script won't be executed - thus only showing you the unexecuted script.

3
  • Thanks. What are the possible options to get around this? The reason why I choose content referencing, that I want changes of content blocks reflected in the Email.
    – Ado
    Commented Sep 5, 2017 at 9:51
  • I am a bit confused here with what you're trying to achieve. Could you please explain your concerns? It's a salesforce marketing cloud behaviour that ampscript appears unexecuted in view mode or journey configurations. Also note that the contentblockbyid ampscript function will execute properly if the content blocks are present. Commented Sep 5, 2017 at 22:38
  • Use case is that we want to be able create content blocks. The content blocks contain for example specific text. The blocks are used in various Emails. If a user then edits a content block, the changes need to be automatically applied to the Emails that use the content block.
    – Ado
    Commented Sep 6, 2017 at 13:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .