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 :
Microsoft Dynamics CRM (Archived)

Project TimeTracking Issue

(0) ShareShare
ReportReport
Posted on by

I Have Requirement which is related to Time Tracking. 

we bill hours. There are 2 types: Contract (fixed, monthly hours) or OnDemand (no contract, just bill the used hours).

When a Incident is opened a time tracker should start automatically per window (e.g. you may work on 3 differen incidents at the same time,

therefore 3 counters are running parallel); when the ticket window is closed the counter should stop. We are tracking on a second-basis, so
every second the window is opened a entry with a comment should be possible, pause-button should be optional for the user.

So can anyone Please tell me How to achecive this. What Process i have to follow. If you have some links which is best for above requirement please share it with me.

Thanks & Reagrds

Arun kumar

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    We are working on something same in one of our projects. What we do is, whenever a record is loaded, we create a new record in a separate time tracking entity (by setting the start date and time). Now when we move away from the form/close the window, we are updating one field using oData for that record which further triggers one workflow. This workflow finds the correct time tracker record (by searching with the current records lookup) and updates the end date and time. We are also capturing if the person was idle for more than 30 seconds, in this case we are saving the idle time as well and considering it for further calculation. You can use onload event to create the record and onbeforeunload event for getting the move away/window close event and update the record.

  • Community Member Profile Picture
    on at

    Thanks for reply,

    but how can we manage if anyone may work on 3 differen incidents at the same time

    then how can i run 3 counters are running parallel.

  • Suggested answer
    Community Member Profile Picture
    on at

    That javascript is form specific, it will create a record for all 3 cases on load. Make sure to keep the lookup of the case entity on time tracker entity. So when you are creating a new record, you will set the lookup of the current case on that time tracker entity. Now when you want to update the time tracker record with end date and time. You will search the related time tracker record which does not have end date value. So it doesn't matter how many records you open at one time, for each new window there will be a separate record created in time tracker entity.

  • Community Member Profile Picture
    on at

    is there any need of SLA in that ?

  • Suggested answer
    Community Member Profile Picture
    on at

    This is a custom solution and cannot be achieved through out of the box SLAs. As you will be tracking the total time by custom entities, you can generate reports based on that.

  • Community Member Profile Picture
    on at

    is there any event for identify move away from the form/close the window ?

  • Suggested answer
    Community Member Profile Picture
    on at

    You can use onbeforeunload JavaScript event.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans