web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

To Auto-Populate Aging Days Javascript With Difference of Create Date and Current Time

(0) ShareShare
ReportReport
Posted on by

5287.pastedimage1629714948104v1.png

Hi, I am new in D365 and JS so I would be really appreciated if anyone could help me. Basically, I want to populate Aging Days Field that Difference of "Created On" and "Current Date". Then, when I press "Resolve case" button it will populate "Resolved By" field on that exact time.

Objectives: Create Case >Auto Populate Aging Days (Created On - Current Time) > Click Resolve Case >  Auto Populate "Resolved By" With That Day Current Time

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Farhan,

    1.Auto Populate Aging Days (Created On - Current Time) 

    You can make the aging field as calculated field, which can calculate it easily.

    4212.pastedimage1629772917818v1.png

    0827.pastedimage1629773027168v2.png

    2.Auto Populate "Resolved By" With That Day Current Time

    You can not update a Case once it is resolved,which means that the last activity that was done on the case was to resolve it.

    (1) You could make use of the 'Modified On' field for Resolved On.

    The 'Modified On' field captures the timestamp. This is by far the easiest solution. Just add the Modified On field on the 'Resolved Cases' view, and you would be able to see when the case was resolved.

    (2) The other option is to achieve this using pre operation plugin custom code.

    Dynamics CRM 365 Capture Case Resolved Date on Case Entity – xrm CRM Dynamics (wordpress.com)

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

    4628.pastedimage1629877735644v1.png 

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 44 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 41

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans