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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Birthday Email Workflow or Plugins every day.

(0) ShareShare
ReportReport
Posted on by 334

I have a requirement to send birthday emails in dynamics to contact,

is this best achieved with a workflow or plugin,

because i want the workflow to run like 7am everyday. So not sure of pluings.

have implemented similar requirement on Siebel with this logic.

birthday-workflow.JPG

How can I achieve this with a workflow.

have already created a calculated field to check if it is a contacts birthday.

I can also do this with plugins, but how can i make the plugin trigger once a day at a certain time 

am assuming the pluing logic is to query all contact record (using a LINQ query) , check if its their birthday and send a birthday email if it is. what about the email template?

Also the previous logic to get the birthday was this

IIf([Birth Date] IS NULL,"N",IIf(Left([Birth Date],6)=Left(Today(),6),"Y","N"))

So how best can this be achieved on dynamics CRM considering it will happen on a daily basis .

Regards

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: Birthday Email Workflow or Plugins every day.

    Hi Adeyemi,

     there is no "scheduler" in Dynamics other than bulk delete jobs schedule.. so, personally, I like the approach described here since you have control over the time when that workflow will start:

    www.crmsoftwareblog.com/.../using-the-bulk-deletion-process-to-schedule-recurring-workflows

     So you'll basically need to create a custom entity that will have a lookup to the contact and a datetime field (next birthday).. you can setup bulk delete job to delete all records (for that custom entity) where "next birthday is today".. the workflow will trigger on delete.. Through that lookup, you'll be able to get to the contact and to send an email.. upon the completion of the workflow, you'll just need to create another custom record, set the lookup to the same contact, and set that date time field to the next birthday

     Otherwise, if you want that kind of precision (7am).. you might create a console application and schedule it somewhere

    PS. And you might also have a look at the Azure Functions:

    http://www.itaintboring.com/dynamics-crm/azure-functions-and-dynamics/

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans