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

Compute Business Time For Location Step

Prev Next

Step Details

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

The Compute Business Time For Location step allows a user to calculate a business' time of operation for a specified location.  



Properties

Inputs

PropertyDescriptionData Type
DaysAllows the user to specify the number of business daysInt32
HoursAllows the user to specify hoursInt32
Location NameAllows the user to define the name of the locationString
MinutesAllows the user to specify minutesInt32
StartAllows the user to specify the start dateDateTime

Outputs

PropertyDescriptionData Type
Done

Compute Business Time OutputOutputs the Business timeDateTime


Example for Compute Business Time For Location Step 

This step calculates a Business date. 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 Compute Business Time For Location step to the designer surface. Connect the Start and End steps.
  3. Select the newly added step to configure its Properties panel.
    The inputs will be configured to calculate a date 10 Days after the Start date, excluding Weekends and Holidays for the given Location.
  4. Under INPUTS, map Days to Constant and enter value 10
  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 enter June 30, 2022.
  7. Save the Flow, then click Debug on the top action bar. Select START DEBUGGING
  8. After the Flow runs, select the Compute Business Time 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 date July 15, 2022.

Related Information

Forum Posts:
Determine Next Business Day