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 :
Microsoft Dynamics CRM (Archived)

Email Template Customization

(0) ShareShare
ReportReport
Posted on by

We have a business need in CRM that requires us to build our own Workflow engine using Plugins. This custom workflow engine will be creating new Activity records based on Rules.

For instance, if a prospect has filled out one of our forms, but has not contacted a Salesperson, then we need to send an email after 10 days. If this prospect contacts a Salesperson during that 10 day period, then the email activity needs to be canceled. This is the reason OTB Workflows will not work.

Now, comes our issue, we need help solving:

Depending on the particular form they filled out on our website, there is a email template used. OTB CRM will not allow us to add a custom field of "Email Template" to our custom Rules form.

We need something like this:

Name: 10 Day Email Follow-up from Web Lead
Sales Office: Tampa
Event Type (What triggers this Rule): Website Visit
Follow-up Type (The activity to be generated): Email
# Days (Wait time to create activity): 10
Email Template: Tampa Web Lead Request

By what other means can I tell the plugin that based on these conditions, use this Email Template? We cannot hardcode this information, because Marketing needs the ability to change the template at will.

*This post is locked for comments

I have the same question (0)
  • Andre Margono Profile Picture
    2,602 on at

    Hi Mike,

    Based on the detail of the scenario that you provided, I think these series of Async Batch Process pattern by Yaniv will work for your scenario:

    blogs.microsoft.co.il/.../asynchronous-batch-process-pattern-part-1

    blogs.microsoft.co.il/.../asynchronous-batch-process-pattern-part-2

    blogs.microsoft.co.il/.../asynchronous-batch-process-pattern-part-3

    HTH

    Andre

  • GL_Mike Profile Picture
    on at

    This doesn't help our need to associate Email Templates with our Rules entity.

  • Suggested answer
    Andre Margono Profile Picture
    2,602 on at

    I see, now it's clear the need is. Email Template on the custom entity. It is not available as Out of the Box feature, but there is an open source solution for that: crmcustomemails.codeplex.com

  • Verified answer
    GL_Mike Profile Picture
    on at

    That's close. The email template itself will always be associated to an Opportunity or Global.

    What we need is a 1:N relationship between the entity Email Templates and the custom entity, Rules. I do not believe this ability will be offered OTB or through a 3rd party.

    We are thinking of developing a plugin for the Email Template entity that, when a new template is created, a record is created in a new entity new_EmailTemplateRel. This new entity will then be associated with our custom Rules entity.

  • Verified answer
    Andre Margono Profile Picture
    2,602 on at

    I think that's the way to go to create the "link" entity for your custom rule with the email template. Bear in mind, you probably might need to consider naming convention for the email template to be able to properly "sync" the email template reference.

  • GL_Mike Profile Picture
    on at

    That's my drawback, as well. I think we'll need to store the GUID of the email template on the "link" entity record.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans