Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Email from CRM on certain date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I want to send an email from CRM to my contacts on their birthday. I use the 'birthdate' field to record all contact's DOB.

I want a job that queries all contacts once a day to look for contact's who's birthdate = today, and send them an email. How can I achieve this without using waiting workflows?

Thanks,

Rich

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email from CRM on certain date

    Fantastic!! Thank you very much Siraj!

  • Verified answer
    Siraj M Profile Picture
    Siraj M on at
    RE: Email from CRM on certain date

    Hi Rich,

    Check this blog post. its simple and easy to implement

    and also this post which is robust for complex scenarios

    both achieve your requirement with ease

    Regards,

    Siraj

  • Suggested answer
    razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: Email from CRM on certain date

    Hi Rich, the alternate to using workflows is to use a Azure to offload the workload which would be better as Long running or volume actions aren’t intended to be run from plug-ins or workflows.

    Sample code for Azure aware custom WF Activity

    msdn.microsoft.com/.../gg327854.aspx

    msdn.microsoft.com/.../gg334766.aspx

    Best Wishes, Raz

  • Suggested answer
    Daniel Wikell Profile Picture
    Daniel Wikell 2,360 on at
    RE: Email from CRM on certain date

    By wanting to not use waiting workflows I'm going to assume you mean you don't want to have a workflow in waiting on each contact.

    One way to solve this is to create a new entity, something in the lines of "birthday email job", that can be the carrier for a single waiting workflow.

    You then simply make a workflow for this entity that calls a custom workflow activity which will be repsonsible for finding the appropriate contacts and creating email messages for them.

    Let your workflow fire up on create of the birthday email job entity, do the searching and sending call and end the workflow with a step that creates a new birthday email job entity for tomorrow. Solve the "only send once a day" limit by having your workflow wait 1 day.

    If you truly don't wish to utilize workflows at all, you would probably have to create a service external from CRM and query data through the API instead.

  • Suggested answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,267 on at
    RE: Email from CRM on certain date

    Hi Rich,

    you could try this general approach:

    blogs.msdn.microsoft.com/.../scheduling-recurring-workflows-in-microsoft-dynamics-crm-2011-online-and-on-premise

    this will not create a big performance impact but involves some thinking.

    Your custom workflow needs to query and implement the business logic you need.

    Cheers,

    Andreas

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans