Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

CRM Workflow for Date field

(0) ShareShare
ReportReport
Posted on by 108

Hi All,

I would like to create a workflow between 2 Dates fields. My workflow should trigger when the employee's termination date is within 1 year of the start date.

(Eg) Employee start date: 1/1/2019

       His Termination date: 1/10/2019.

In this example, he got terminated within a year and so my workflow should start and send an email.

How can I compare these 2 Dates fields in the workflow particularly to check if the termination date is within a year of starting date? ? Any help is much appreciated. 

Thank you,

Poorni.

  • erhan.keskin Profile Picture
    2,253 on at
    RE: CRM Workflow for Date field

    Hi,

    Here how you can do it;

    • Add "Check Condition" step in WF
    • In the condition page, select the "Employee Termination Date" field
    • Select the operator "Is Less Than"
    • Click on the "Enter Value" field
    • Select 12 in the month box on the right pane
    • Select "After" in the option sets below the month box
    • Select the "Employee Start Date" field in the field list below
    • Check if "{12-months after Employee Start Date}" is populated in the "Enter Value" box.
    • Save and Close

    pastedimage1575978853072v1.png

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: CRM Workflow for Date field

    Hi Poornima,

    Refer below blog. Its basically you need to select the operator as Set To on left hand side, select 12 month and then select the date. and then okay.

    https://www.powerobjects.com/blog/2015/04/14/how-to-add-a-calculated-date-on-a-date-field-with-workflow/

    Hope this helps.

  • Poornimaa Profile Picture
    108 on at
    RE: CRM Workflow for Date field

    Hi Erhan,

    Thanks for your answer. Can you please help me with this?

    How to do "{12-months after Employee Start Date}" in workflow? I tried doing it but couldn't achieve.

    Many thanks,

  • erhan.keskin Profile Picture
    2,253 on at
    RE: CRM Workflow for Date field

    Hi,

    You can create a WF and trigger it when the Termination Date is populated. In the WF, you can check if the Termination is within 1 year or not and send the email.

    In order to determine the difference there are different ways;

    1- There can be placed an if condition in WF

    e.g. Employee Termination Date is less than {12-months after Employee Start Date}

    2- There can be created a calculated field and calculate the difference, check the calculated field in WF

    3- There can be WF Activity developed to calculate the date difference in C# and use the result in WF

    Regards,

  • Suggested answer
    MikeC282 Profile Picture
    2,148 on at
    RE: CRM Workflow for Date field

    You can create a calculated field with the formula:

    DIFFINDAYS (new_employeestartdate,new_terminationdate).

    This will give you a number value between the termination date and start date. After which you can use a workflow where the calculated field is less than or equal to 365.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans