Skip to main content

Notifications

Announcements

No record found.

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

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Workflow time limit

    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.

  • Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow time limit

    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.

  • Suggested answer
    Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow time limit

    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.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Workflow time limit

    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 :)

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Workflow time limit

    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

  • Shyam Mani Profile Picture
    Shyam Mani 331 on at
    RE: Workflow time limit

    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

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans