Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

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

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: To Auto-Populate Aging Days Javascript With Difference of Create Date and Current Time

    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.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: To Auto-Populate Aging Days Javascript With Difference of Create Date and Current Time

    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.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans