How do I create an email in dynamics marketing that retrieves localized product names…
- User
How do I create an email in dynamics marketing that retrieves localized product names based on the language of the recipient (contact) .
- Assistant
To create an email in Dynamics Marketing that retrieves localized product names based on the language of the recipient (contact), you can follow these steps:
- Create localized product names in Dynamics Marketing for each language you want to support.
- Create a custom field in the contact entity to store the language of the contact.
- Use dynamic content blocks in the email to retrieve the localized product name based on the language of the contact. Use the IF/ELSE statement to determine the language of the contact and retrieve the corresponding product name.
For example, you can create a dynamic content block for each language, and use the following syntax to retrieve the localized product name:
{{#if contact.LanguageCode == "en-US"}} English product name {{else if contact.LanguageCode == "fr-FR"}} French product name {{else}} Default product name {{/if}}
This will retrieve the appropriate localized product name based on the language of the contact.
- User
looks good, but how do I retrieve the localized product name?
- Assistant
To retrieve the localized product name in Dynamics Marketing, you can follow these steps:
- Go to the "Product Catalog" in Dynamics Marketing and select the product you want to retrieve the localized name for.
- Click on the "Localized Names" tab and create a localized name for each language you want to support.
- In the email, use the dynamic content block to retrieve the localized name based on the language of the contact.
For example, you can use the following syntax to retrieve the localized name of a product in English:
{{product.name_en-US}}
Or, you can use the following syntax to retrieve the localized name of a product in French:
{{product.name_fr-FR}}
This will retrieve the appropriate localized name of the product based on the language of the contact. Note that the syntax for retrieving the localized name may vary depending on the naming convention you have used in Dynamics Marketing.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.