locked
How to compare two Date fields in CRM Workflows RRS feed

  • Question

  • Hi,

    I want to compare two date fields (Only date) in CRM OOB workflow. Is it possible?

    If not how to achieve this in custom workflow activity?

    I want to compare two date fields and return true/false.

    If anybody have sample code for this scenario it will be really great.

     


    Yadav

    Friday, August 12, 2016 10:06 AM

All replies

  • In which scenario do you want to use this functionality?

    Friday, August 26, 2016 4:15 AM
  • I don't think it's possible in OOB WOrkflow. Use this code to compare dates.

    Regards, Saad

    Friday, August 26, 2016 5:51 AM
  • Hi Yadav,

    You can use the OOB functionality of CRM by selecting the Check condition in “Add Step” as per below screenshot.


    now you can compare two dates field as per below screenshot.

    Hope this helps you.

    Thanks,
    Sam


    Inogic | Blog | news@inogic.com

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"


    • Edited by Sam-Inogic Friday, August 26, 2016 10:44 AM
    Friday, August 26, 2016 10:44 AM