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

Add working days to a date

(0) ShareShare
ReportReport
Posted on by

I have a requirement to display the date which is 5 working days from the date I received an application. I have a field 'Received On', and 'Acknowledgment Due On'.

Working days are defined in legislation and do not include weekends, public holidays and the period between 25/12 and 2/1 each year.

I would like to achieve this without code if at all possible. Does anyone have any ideas? I have Googled for an answer but so far I have not come up with anything that I can repeat.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Laura,

    If workflow is an option you can use my toolkit (UWT in my signature) that contains "Add Business Days" operation.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    There is nothing available out of box for this. Also as your requirement is relatively complex I don't think you can achieve this without code however there are some workflow utility exists (as mentioned above) which you can try to achieve your requirement.

    Take a look at this article-

    community.dynamics.com/.../tip-1144-how-to-add-business-days

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi Andrew, Thanks for the suggestion. Workflow is definitely an option however I'm not sure if we're allowed to use other people's code... working in a bank so we're very security conscious :) Will ask the security guys for permission!!

  • Community Member Profile Picture
    on at

    Hi Ravi, thanks for this. I had already found this article but was reluctant to download other peoples code due to potential security issues...

  • Guido Preite Profile Picture
    54,086 Moderator on at

    if you can't use other people code than you need to write your own, considering also the fact that you need a custom rule for the public holidays and the period 25/12-2/1 you mentioned.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Laura,

    If you have issues using toolkit as it is you can get just the code of piece you need. It is here - github.com/.../AddBusinessDays.cs

    And I worked in bank in one project - I heard of hadeaches that security policies can bring.

  • Verified answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    Code option suggested by Andrew gives you more flexibility and control but if you cant go for that option, you can certainly achieve the same using SLAs.

    You can create an SLA with 5 working days and when you create the record, CRM will create SLA KPI instance for that record. You can have a workflow to copy the End Date from the KPI instances to a date-time field on the main entity - This will have you the actual date after 5 working days from Received On or Acknowledgment Due On.

    community.dynamics.com/.../adding-sla-39-s-to-other-entities

    If you want you can actually use the KPI instances to have a count down timer on the form as well

    Hope this helps

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

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans