Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 5.0.0 |
Location | Data > Dates |
The Compute Business Time For Location step allows a user to calculate a business' time of operation for a specified location.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Days | Allows the user to specify the number of business days | Int32 |
Hours | Allows the user to specify hours | Int32 |
Location Name | Allows the user to define the name of the location | String |
Minutes | Allows the user to specify minutes | Int32 |
Start | Allows the user to specify the start date | DateTime |
Outputs
Property | Description | Data Type | |
---|---|---|---|
Done | |||
Compute Business Time Output | Outputs the Business time | DateTime |
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.
- Create a new Flow. Refer to Create Flows.
- 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.
- 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.
- Under INPUTS, map Days to Constant and enter value 10
- 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.
- Map Start to Constant Date and enter June 30, 2022.
- Save the Flow, then click Debug on the top action bar. Select START DEBUGGING.
- 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