Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Get Business Days Between Dates For Location Step

Prev Next

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationData > Dates

The Get Business Days Between Dates For Location step is used to determine how many business days exist between a time span.   



Properties

Settings

PropertyDescriptionData Type
Include Start in CountWill include the start date in the output number---
Include End in CountWill include the end date in the output number---

Inputs

PropertyDescriptionData Type
EndAllows the user to specify the end dateDateTime
Location NameAllows the user to define the name of the locationString
StartAllows the user to specify the start dateDateTime

Outputs

PropertyDescriptionData Type
Done

Business DaysOutputs the number of daysInt32


Example for Get Business Days Between Dates For Location Step

This step calculates the number of Business Days between the Start and End dates. It will exclude all non-working days and holidays configured for the Location entity.
  1. Create a new Flow. Refer to Create Flows.
  2. From the Toolbox tab, navigate to the DATA > DATES category and drag the Get Business Days Between Dates for Location step to the designer surface. Connect the Start and End steps.
  3. Select the newly added step to configure its Properties.
  4. Under INPUTS, map End to Constant Date and select July 5, 2022.
  5. Map Location Name to Constant and enter value "Decisions."
    Note:
    Location Name should be exactly the same as the Location configured in System Data. Refer to Configuring Locations.
  6. Map Start to Constant Date and select June 30, 2022. 
  7. Save the Flow, then click Debug on the top action bar. Click START DEBUGGING.
  8. After the Flow runs, select the Get Business Days Between Dates For Location step > Execution 1 > View Input/Output Data

Successful execution of the flow will eliminate all the weekends (Saturday & Sunday) and a Holiday (July 4, 2022) configured for the Location (Decisions) to output the value 2.

Related Information

Forum Posts:
Calculate Business Days W/ A Negative Integer