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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

insert dynamic text tab in email template

(0) ShareShare
ReportReport
Posted on by

i am not able  to fetch data of foreign key entity in email template.

i am trying to show the name of the business unit trying this syntax {!evtech_ticketrequest:ownigbusinessunit/@name;}

and to show start date of event i am trying {!evtech_ticketrequest:evtech_eventid/@evtech_stratdate;}

not getting any output from these

if somebody can help me with this shall be very thankful , I am kind of stuck in here need urgent help

I have the same question (0)
  • Verified answer
    Nya Profile Picture
    29,060 on at

    Hi,

    It seems you’re using a custom entity whose logical name is evtech_ticketrequest.

    The syntax of the dynamic content for Lookup field should be

    {!EntityLogicalName:FieldLogicalName/@name;},

    and for Date field should be

    {!EntityLogicalName:FieldLogicalName/@date;}.

    Here is an example:

    (+) Insert dynamic values in Email Templates from Custom Entities - Microsoft Dynamics 365 Community

     

    So your syntax for start date need to be changed to something like:

    {!evtech_ticketrequest: evtech_stratdate/@date;}

    (Please comfirm if the name of the field is stratdate ore startdate here.)

    Please have a try to see if it works.

     

    And for Business Unit, the field is a bit special. Please refer to the next article to know more about it.

    The mystery of the OwningBusinessUnit, or how can we use Advanced Find to locate all records in a particular BU? | It Ain't Boring (itaintboring.com)

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • Community Member Profile Picture
    on at

    Hii Nya,

    evtech_startdate is not a field in evtech_ticketrequest

    evtech_eventid is the foreign key placed in evtech_ticketrequest

    evtech_startdate is the  field of evtech_eventid

    is it possible to fetch it using {!evtech_ticketrequest: evtech_startdate/@date;} ?

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    I’m sorry for the misunderstanding.

    If the Start Date is the field in the other entity, it cannot be fetched with {!evtech_ticketrequest:evtech_startdate/@date;}

     

    Unfortunately, the lookup field can only fetch the name with GUID by

    {!EntityLogicalName:FieldLogicalName/@name;}

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans