You need to sign in to do that
Don't have an account?

I have 100 users in organization,i need to send greeting based on users date of birth , how can we do that?
Hi ALL,
I have 100 users in myorg.
based on date of birth send greeting to particular users.
Please hlep me on this post.
I have 100 users in myorg.
based on date of birth send greeting to particular users.
Please hlep me on this post.
Can you please explain more on what you are trying to do?
You can do this through the Workflow rule.
Apex provides us 3 methods to send Emails -
To send Emails via these methods, we need some action to be done on the records (such a insert/update). But in our case, there is no action taking place on the records, hence Apex provides an other feature called Scheduled Apex which allows our Apex code to run everytime at a specific time.
Hence, for your usecase, you can write an Apex Class which would query all the User records and then iterate them and check if todays date is equal to the User's birth date, if yes, then send an Email or greeting. And once you have written the Apex Class, make this Apex Class to run everyday at a specific time using Scheduled Apex.
You can know more about Scheduled Apex here - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm" target="_blank)
I tried in same manner as you said ,but i am not able to send notification.
if you dont mind wrtite a logic and post it here.
There are several coupled approaches to achieve this. To help you I am providing to single approach using schedular. Please take help from this code and do necessary changes: Note: Do not forget to schedule this class.
Thanks
Gulshan Raj
Thanx.Its working fine as we exepected.
If this resolve your problem, can you please mark this as solved , so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Thanks
Gulshan Raj