Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
When I want to send the birthday message to users of this month birthday and/or anniversary.
But to select of This Month is not work for the birthday and anniversary. Do I need to write some plugin code?
Please advice me for the issue...
Ya, because if you have Date of Birth like 1 August 2010, today is 4th August 2015
Then you won't get it. Because of the year is different.
Yes, you need to use a custom code for this, to get the month only, not plus the year.
Thanks Aileen. What kind of code do I have to use? Do you have any examples?
i would create three specific fields.
On changing the birthdate field of the entity i would fill these fields.
Now you can select contacts having birthday on dayofbirth and monthofbirth
Hi you have to use custom code for this, you have to fetch all user's birth date or anniversary date falling in this month and then send them the respective mail.
for this you have to write a console application or windows application that will daily or 1st of every month depending on your requirement.
But I would like to use the standard birthday and anniversary field in the contact entity of the Dynamincs CRM. It is OK if those custom fields are automatically set from the standard field by some functions and/or calculation.
Thank you for your answer. That I would like to. Do you have the sample code?
I would like to do for the formula custom field as follows.
BirthdayMonth (Text) = MONTH( Birthdate )
var dateFieldValue= Xrm.Page.getAttribute('birthdate').getValue();
var year = dateFieldValue.getFullYear();
var month = dateFieldValue.getMonth();
var day = dateFieldValue.getDate();
and set the values in the three whole number fields created.
Thanks a lot.
If you can mark the above answer by me as correct, it will be great.
Business Applications communities