Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

How to change email template dynamically for a workflow step?

Posted on by 162

Hello experts,

There is an entity, in which, any record might use one of several predefined email templates for sending email notifications.

At the moment, I have two issues have not figured out yet.

1. How to add an email template lookup field for the entity?

2. How to dynamically change the email template based on look up value in workflow?

Any help is highly appreciated!  For the moment, I cannot write custom codes, so options are limited to OOTB features.

Thanks,

Ning

  • Abby Kong Profile Picture
    Abby Kong 6 on at
    RE: How to change email template dynamically for a workflow step?

    Hi Ning Zhu,

    I see what you want to achieve now. Yes, you are right. We can't create a lookup field for email template, that's how email template entity is, we can't create any relationship from/to it thus no lookup field.

    This is certainly achievable by custom code.

    Regards,

    Abby

  • Ning Zhu Profile Picture
    Ning Zhu 162 on at
    RE: How to change email template dynamically for a workflow step?

    Yes, that is the current implementation, however, this workflow has to be changed by a technical resource, every time a new template is added by business user.  We want to have a look up capability to eliminate this step.  It sounds like not possible OOTB, only go through a custom coded plug-in.

  • Suggested answer
    Abby Kong Profile Picture
    Abby Kong 6 on at
    RE: How to change email template dynamically for a workflow step?

    Hi Ning Zhu,

    You shouldn't need to create email templates as a lookup field.   If you have several predefined email template, you can achieve this easily with OOB workflow using If-otherwise conditions, something like this:

    ifotherwise.png

    Regards,

    Abby

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans