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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding a custom dynami...
Power Apps
Unanswered

Adding a custom dynamic variable to an email template is not working for me

(0) ShareShare
ReportReport
Posted on by 106

Hi PowerApps Experts, 

 I have manually added a custom parameter to my email template using the method suggested in MS Learn (Personalize emails with dynamic text - Power Apps | Microsoft Learn  as below (my entity is called Bookings):

 

"Hi, 

{!User:Full Name;}
Adults {!Booking: Adults;}"
 

However, when I  try to create an email using the Timeline and inserting this template the global entity User name parameter is resolved but my custom entity parameter is not resolved, as you can see below:

 

Hi, 
Craig Harland
Adults {!Booking: Adults;}
 
Sorry, for posting but I have been scratching my head on this one for a few hours now; but with the same result. I wonder whether I have to turn an option on for my custom entity because the User entity parameter is clearly being resolved correctly.
 
Kind Regards, Craig
Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Craig1 

     

    Is your booking column a lookup/option set??

     

    Then the above will not work.

     

    For that you will have to write:

     

    {!EntityLogicalName:FieldLogicalName/@name;}

     

    I hope this helps 🙂

  • Craig1 Profile Picture
    106 on at

    Hi Sundeep,

    Many thanks for taking the time out to reply and for your sensible suggestion.  My field is just a number, unfortunately. 

     

    Thank you, Craig

  • Craig1 Profile Picture
    106 on at

    Hi,

    Well, this is an interesting development. I decided to insert a field  (Email) from the User entity using  the "proper" method of  inserting dynamic text i.e. 

     

    Craig1_1-1699023836383.png

     

    I then added the same variable to the template but by typing it in manually; which gave me the following template structure. As you can see, below, the text for the dynamic field looks identical:

    Craig1_3-1699024306969.png

     

    However, when I tried to use the template; this is the result:

     

    Variables added through the template interface:
    Full Name Craig Harland
    Email caharland@outlook.com

    Variables added manually:
    Full Name {User:Full Name;}
    Email {User:Email 2;No Email}

     

    As you can see, even though there appears to be no difference between the field references in the template other than two were added through the Power Apps Template Editor interface and the other two were typed in manually by yours truly.; in usage the fields added manually are not resolved. 

     

    Head scratcher.  😅

     

    Craig

     

    Hi, 
    Full Name Craig Harland
    Email {!User:Email 2;}
    Email with insert
     
    As you can see the 

     

     

    Hi, 
    Full Name Craig Harland
    Email {!User:Email 2;}
    Email with insert
    caharland@outlook.com
  • Sundeep_Malik Profile Picture
    6,501 on at

    @Craig1 

    Not exactly sure I am bad at Model Driven Apps. 😂

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard