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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Workflow time limit

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

Is it possible to modify the duration of a workflow task to a time unit of less than an hour?

wfdur1.png

I am trying to give users 20 minutes but this seems not possible to realize this as only full numbers are allowed to be entered and as there is no functionality available to enter minutes.

Best regards,

Ludwig

*This post is locked for comments

I have the same question (0)
  • Shyam Mani Profile Picture
    331 on at

    Hi Ludwig,

    You can select Duration : "Days"

    Calender Name : "<Your new calender id>"

    And in Working time calenders form,

    1. Select your new calender id

    2 . Under General Tab,  Standard work day in hours = 0.20

    Remember to create a new calender id and not modify existing ones.

    Let me know if this works.

    Regards,

    SM

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi SM,

    I tried 'cheating' AX this way but unfortunately, it does not work.

    Even created a completely new calendar with a new working time template but the workflow history tasks seem to ignore that :-(

    Would have been a very smart workaround but it does not work in my case.

    Best regards,

    Ludwig

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I am afraid I don't see any way out of box. Customization could be one of the ways (not an easy one).

    you would need to find source of Microsoft developed , managed Host Control, that is used in workflow editor. If any part of managed host control, is in system code, that would not be allowed to customize.

    For moment I would recommend you, if you may say to your client that this is not possible out of box, and look around possibilities if that can be customized. Don't make a promise to deliver :)

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi Ludwig.

    You can create a new WorkflowDueDateProvider class to handle times as you would like them to be handled. But an important thing to remember is that the DueDate batch jobs are generally setup to only run much less frequently. So if you expect finer grained timing you will need to adjust this accordingly and you may influence performance as a result too.

  • Jonathan  Halland Profile Picture
    11,310 on at

    A Quick "hack" option to try is to extend "WorkflowWorkCalendarDueDateProvider" and modify the "resolve" method to divide the parameter "_timeSpanMinutes" by 60. This will have obvious implications that what you select on the configuration form will not be the same as what actually happens, but you can at least manipulate it as you want. E.G. Selecting 1 Hour on configuration will do 1 Minute in reality.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Probably we all are sleepy head yet.  :)

    I also saw this on AX2012 yesterday. But just realized now that question is about D365. There might be other possibilities or no possibilities. I will give it a go in D365, as I will find time. Meanwhile everybody else is being welcomed to contribute.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans