Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Birthday select in Marketinglist

Posted on by 10
How can contacts who have their birthday "today" and turn 30 be selected in a marketing list?
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Birthday select in Marketinglist

    Hi A.Wicki,

    From your description, I suggest you to use segment.

    Here is the relevant document about Segment: https://docs.microsoft.com/en-us/dynamics365/marketing/segmentation-lists-subscriptions

    First we need to get the age of the contact.

    I have created a text field and called it Real age where I will store the age as you described. Then I have created a Schedule Flow as followed: 

    pic5.png

    pic6.png

    Note: When creating, remember to set repeat every to 1 day.

    pic7.png

    1. Initialize variable

    Age Year, Age Month and Age Day stays empty until we fill them later on.

    pic8.png

    Now Year = int(formatDateTime(utcNow(), 'yyyy'))

    Now Month = int(formatDateTime(utcNow(), 'MM'))

    Now Day = int(formatDateTime(utcNow(), 'dd'))

    pic9.png

    2.Add ‘condition’ step. When Birthday has a value, Real age can be calculated.

    pic10.png

    3. 

    Those are the following expressions used in this flow:

    sub(int(formatDateTime(utcNow(),'yyyy')),int(formatDateTime(items('Apply_to_each')?['birthdate'],'yyyy')))

    int(formatDateTime(items('Apply_to_each')?['birthdate'],'MM'))

    sub(int(formatDateTime(utcNow(),'MM')),int(formatDateTime(items('Apply_to_each')?['birthdate'],'MM')))

    add(12,sub(int(formatDateTime(utcNow(),'MM')),int(formatDateTime(items('Apply_to_each')?['birthdate'],'MM'))))

    int(formatDateTime(items('Apply_to_each')?['birthdate'],'dd'))

    sub(int(formatDateTime(utcNow(),'dd')),int(formatDateTime(items('Apply_to_each')?['birthdate'],'dd')))

    add(31,sub(int(formatDateTime(utcNow(),'dd')),int(formatDateTime(items('Apply_to_each')?['birthdate'],'dd'))))

    pastedimage1650868568180v1.png

    pastedimage1650868601360v2.png

    pastedimage1650868632800v3.png

    4. Test

    pic16.png

    Second, use Segment to get contacts that match today's birthday and will be 30 years old.

    pic17.png

    pic18.png

    At last, create Customer Journey to send birthday card to contacts who have birthday today and will be 30 years old.

    pic19.png

    Note: Remember to change the time zone to the time zone of your own region.

    pic20.png

  • A.Wicki Profile Picture
    A.Wicki 10 on at
    RE: Birthday select in Marketinglist

    Using a "dynamic marketing list" in MSD365, contacts are to be found who will be 30 years old "today". They will then receive a birthday card.

    With the "advanced search" it doesn't seem to be possible to filter out exactly these contacts.

    But maybe I don't know the best way yet.

    Maybe you can help me further.

    Thank you very much.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Birthday select in Marketinglist

    Hi A.Wicki,

    Could you answer my question thus I can help you further on this case? What exactly do you want to do with this request?

    If possible, please write down your specific requirements.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans