Determine Next Business Day
Comments
-
Hi,
Are there any available steps which we can use to determine the next business day? I have looked at the “Get Business Days Between Dates For Location” step, but am unsure if this is the correct step or how to use it (it is looking for a ‘Location’ parameter).
-
The Compute Business Time For Location step will return the next business day based on a start date, location, and the number of days and hours input into the step. In Decisions, a Location is an object where you can specify business days and hours for a particular location and refer to that information in flows. You can create locations by navigating to System > System Data > Locations in the studio portal and selecting the Add Location action. Ive included a link to documentation covering how to create a location.
Locations: https://documentation.decisions.com/docs/setup-business-hours
-
What I was able to do in order to determine if a day was a Business Day was create a flow that takes in a DateToCheck and a LocationName, and used the Get Business Days Between Dates for Location step with the Include Start and End in Count as True.
Then I have my one DateToCheck as the Start and End Date in the step. The output is the number of business days in range so if its 1 then the date check is a business day, if not you can you an add day step to try the next day.
Howdy, Stranger!
Categories
- 2.1K All Categories
- 17 General
- 154 Installation / Setup
- 984 Flows
- 86 Rules
- 199 Administration
- 203 Portal
- 427 General Q & A
- 593 Forms
- 281 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 137 Pages
- 1 Process Mining
- New Features
- 147 Datastructures
- 49 Repository
- 163 Integrations
- 25 Multi-Tenant
- 21 SDK
- 39 Modules
- 36 Settings
- 18 Active Directory
- 12 Version 7
- 34 Version 8