Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Business rule or workflow to set the most recent date from 3 other fields into a new field

(0) ShareShare
ReportReport
Posted on by

I have a date for reporting called "reporting date",want to look at 3 other fields and pick the most recent date to populate here.
Ex: today is 2/26/19
Date 1: 2/21/18
Date 2: 10/15/18
Date 3: 2/15/19
Reporting Date would be populated with 2/15/19

How can this be done?

  • BritB Profile Picture
    on at
    RE: Business rule or workflow to set the most recent date from 3 other fields into a new field

    thank you, any direction on how to do this?

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: Business rule or workflow to set the most recent date from 3 other fields into a new field

    Hi BritB,

    I would implement this with JavaScript or a Plugin. Your code will need to retrieve the values of "Date 1", "Date 2", and "Date 3" and compare the values to find the most recent date. Once you have the most recent date it is just a matter of populating the "Reporting Date" with the most recent date.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans