web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Display default english content from content block if specific language cb doesn't exist

(0) ShareShare
ReportReport
Posted on by
I working on crm marketing module (RTM) . I am adding reference like this in email ##rtm_uni_abc_cwy[locale]## this dynamically takes language from the event and prints the respective cb content.If cb is not for that languages display cb name as it is.But I want content in english ,that means en-us cb content should populate by default.
I have the same question (0)
  • Suggested answer
    Radwan Almsora Profile Picture
    2 on at

    Hello,

    ​The behavior you are experiencing occurs because using the strict [locale] token array syntax (e.g., ##rtm_uni_abc_cwy[locale]##) forces the Real-Time Marketing (RTM) rendering engine into an exact-match evaluation mode. If the runtime event payload passes a locale attribute that doesn't map to an active Content Block (CB) variation, the personalization engine fails safely by printing the token string literal as plaintext.

    ​To force a fallback to your English (en-US) content block instead of printing the raw token name, you need to implement conditional Handlebars logic (if/else checks) or use nested default evaluation expressions inside your email HTML template.

    ​Here are the two best ways to achieve this behavior in Real-Time Marketing:

    ​Method 1: Using Handlebars Conditional Validation (Recommended)

    ​Instead of relying on the engine to resolve the localization array implicitly, you can explicitly check if the localized Content Block contains data. If it evaluates to null or empty, you tell it to output the static en-US variant.

    ​Open the HTML/Code view of your email template and wrap your token reference like this:

    {{#if rtm_uni_abc_cwy.[locale]}}

        ##rtm_uni_abc_cwy[locale]##

    {{else}}

        ##rtm_uni_abc_cwy[en-us]##

    {{/

    if}}

    Note: Ensure your primary English content block is explicitly tagged or named with en-us or default inside your Content Block asset settings.

    Method 2: The Coalesce / Default Operator Workaround

    ​If your version of the Customer Insights - Journeys engine supports default notation within personalization tokens, you can utilize a pipe operator or fallback string inside the token binding path.

    ​However, since standard RTM asset tokens are strictly compiled before the journey drops, Method 1 is the most stable and heavily used architectural approach across enterprise layouts.

    ​Best Practice Checklist for Content Blocks:

    1. Asset Naming Convention: Ensure that your English content block doesn't just sit as the base un-localized file; explicitly create an en-US variant within the block's localization properties so the compiler can find it via the string reference.
    2. Data Type Check: Ensure that the locale parameter coming from your trigger event exactly matches the casing format (e.g., en-us, fr-fr) of your content block variations, as Handlebars evaluation in Dynamics 365 is case-sensitive.
    Give the conditional {{#if}} wrapper a try in your email HTML, and it will prevent the raw token string from ever showing up to your end-users. Let us know if you need help adjusting the syntax!
     
    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 85 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 64

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans