You've correctly identified the likely root cause: the field locationname (from the related location entity) is not directly available on the Participation entity from which your email is being sent. The fact that Level-up shows the formatted value in _location_value@OData.Community.Display.V1.FormattedValue confirms this.
locationname
location
Participation
_location_value@OData.Community.Display.V1.FormattedValue
Here's a breakdown of why this happens and how to solve it within your Power Automate flow and Dynamics 365 email template:
Understanding the Data Structure:
Location
_location_value
{!location:locationname;}
Solution: Accessing Related Entity Attributes in Power Automate
You need to explicitly retrieve the related Location record within your Power Automate flow to access its locationname attribute. Here's how you can modify your flow:
Here are a couple of common approaches:
SendEmailFromTemplate
Example using "Perform a bound action" (assuming the email is related to the Participation record):
participations
Microsoft.Dynamics.CRM.SendEmailFromTemplate
relatedData
{ "participation": @{outputs('Get_the_participation_record')}, "location": @{outputs('Get_record_(Location)')} }
{{relatedData.location.locationname}}
or a similar dot-notation based access. You might need to experiment or consult Dynamics 365 documentation for the precise syntax for accessing custom parameters in email templates.
Using the Formatted Value (Less Ideal for Direct Use):
While you see the formatted value in _location_value@OData.Community.Display.V1.FormattedValue, this is primarily for display purposes and might not be directly usable as a value in your email content. It's a string representation of the lookup value (likely the name of the location). The more reliable way is to fetch the actual Location record and use its attributes.
In summary, the solution involves:
The "Perform a bound action" with a custom parameter is generally the most robust and flexible way to pass related data to email templates in Power Automate. Remember to test your flow and email template thoroughly after making these changes.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Hamza H 141
Daniyal Khaleel 132
DAnny3211 130