Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Have a workflow send 2 different email templates by splitting who to send the contacts to by 50/50

(0) ShareShare
ReportReport
Posted on by 2,148

Hi all,

Quick question. I've got a workflow which triggers a emails upon creation of a contact (plus a few other conditions). The problem is I've got 2 different email templates to send but would like to alternate the send of the templates in a 50/50 split. I'm really not sure how to go about this in a workflow or whether it's at all possible.

I almost want to be able to perform a A/B split in a workflow when sending emails.

Kind regards,

Michael

*This post is locked for comments

  • erhan.keskin Profile Picture
    2,253 on at
    RE: Have a workflow send 2 different email templates by splitting who to send the contacts to by 50/50

    Hi,

    In this scenario, i assume contact creation is happening individually time by time;

    As Aric says, you can have a configuration/setting entity to store the latest used template. Before sending an e-mail, you can go and check which template was used in the last contact creation by workflow activity.

    If there is a bulk contact creation in an application;

    You can create a field on contact entity like 'e-mail template used', you can populate that field with a template name in the application. In this case, you might know how many contacts you would create, so you can take half of it to assign to A, other half to B.

    When WF is triggered, it can check 'e-mail template used' field to understand the template to use to send the e-mail.

    if your scenario is different, let me know.

    Regards,

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: Have a workflow send 2 different email templates by splitting who to send the contacts to by 50/50

    You can store the value of the next email to send (A or B) in a custom entity (such as Application Setting/Configuration entity). Have your workflow call an action to retrieve the next template to use. If A send email A, if B send email B. After emails are sent, update the custom entity with the opposite value.

    You can also use flow or custom workflow activity (and other options I might have omitted) to get the same results.

    Hope this helps.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans