Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Use end of Timer for start workflow

(0) ShareShare
ReportReport
Posted on by 246

Hi,

i tried to use Timer in Dynamics 2016 as solution for our process of reservation products. 

The user fill date field and that execute start of the Timer. In another field i have "Status of reservation" and with the end of Timer i need to change the "Status of reservation".

Main problem for me is that Timer cannot be used by Business Rules or Workflows.

Is there any other way please? 

Thanks for any advice.

*This post is locked for comments

  • Alexandr J.  Profile Picture
    Alexandr J. 246 on at
    RE: Use end of Timer for start workflow

    Hi Adrian,

    thanks for clarification, that's exactly what i needed. Have a nice day!

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Use end of Timer for start workflow

    Hi Alexandr Jermolajev,

    You can solve this problem with JavaScript since you are using Microsoft Dynamics CRM 2016.

    Retrieve the value of the timer using:

    var seconds = Xrm.Page.getControl("timer").updateTimeDifferenceInSeconds();

    This function returns the current current ticks of the timer in seconds; you can then set the "Status of reservation" field when the value of the timer reaches a certain value.

    Xrm.Page.getAttribute("statusofreservation").setValue(value);

    The drawback of this method is that it will break once you upgrade to Dynamics 365.

  • crm development Profile Picture
    crm development 870 on at
    RE: Use end of Timer for start workflow

    Hi, give a try with below.

    community.dynamics.com/.../getting-the-current-value-of-the-timer

    Thanks,

    Anand

  • Alexandr J.  Profile Picture
    Alexandr J. 246 on at
    RE: Use end of Timer for start workflow

    Thanks for link, but that's not solving my problem - i need to execute change of Status field when timer gets 0:00. Timer shows the time till is user's reservation active so i want to stop the timer at 0:00 and start some workflow with change of field Status.

  • Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: Use end of Timer for start workflow

    Hi Alexandr,

    have a look at this article: www.catapulterp.com/set-timer-in-crm-for-case-management

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans