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
Here's a comprehensive guide on how to create an email in Dynamics Marketing that retrieves localized product names based on the language of the recipient (contact).
Understanding the Components
- Dynamics 365 Marketing: The platform where you'll build your email campaign.
- Contact Data: The information about your contacts, including their language preferences.
- Localization: The process of adapting content for different languages and regions.
- Dynamic Content: The ability to personalize content based on specific data points, like language.
Steps to Implement
-
Set Up Language Preferences:
- Contact Data: Ensure your Dynamics 365 Marketing system has a field to store the language preferences of your contacts. This could be a dropdown list, a custom field, or a lookup to a language table.
- Language Codes: Use standard language codes (ISO 639-1) to represent the languages. For example: 'en' for English, 'fr' for French, 'es' for Spanish.
-
Create a Dynamic Content Rule:
- Navigate to: Marketing > Email > Create Email.
- Select: "Dynamic Content" in the "Content" tab.
- Add a Rule: Create a new rule to dynamically retrieve the localized product name.
- Choose a Field: Select the field containing the product name.
- Use a Dynamic Content Expression: Use a dynamic content expression to retrieve the localized product name.
-
Dynamic Content Expression:
- Use the
Contact.LanguageField: This field will provide the language code of the contact. - Use a Lookup Table: If you have a separate table for languages, you can use a lookup to map the language code to the corresponding localized product name.
- Example:
code
{ "Product Name": Dynamics.GetLocalizedText(Contact.Language, "Product Name") }
- Use the
-
Test and Deploy:
- Test: Send a test email to yourself or a test contact to ensure the dynamic content is working correctly.
- User
looks good, but how do I retrieve the localized product name?
- Assistant
You're right, I focused too much on the setup and forgot to explain how to actually retrieve the localized name!
Here's a breakdown of how to retrieve the localized product name using dynamic content expressions in Dynamics 365 Marketing:
- User
To bad, the localized names are not available on any of the forms.
- Assistant
- User
I'm not sure that the syntax, for retrieving values from the related entity, is correct
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.