Use a Value Set in a Payroll Flow
This example demonstrates how you can create a value set to retrieve input values for location name as a parameter for a flow.
Use the location parameter when you run the flow to generate multiple reports in a sequence. Use the search option on the parameter to select an appropriate location value.
Create a Value Set that Returns all Location Names
- Navigate to the Setup and Maintenance area and select the Value Sets task.
-
On the Value Sets page, click Create.
-
Enter these values.
Details to Create a Value Set
Field
Value
Value Set Code
LOCATION_VS
Description
Locations
Module
Payroll Flows
Validation Type
Table
Value Data Type
Character
FROM Clause
pay_ flows_pfValue Column Name
pft.flow_nameValue Column Type
VARCHAR2
Value Column Length
100
ID Column Name
pf.base_ flow_idID Column Type
Number
ID Column Length
18
WHERE Clause
Pf _flow_ id = {PARAMETER. LOCATION_IP}Note:LOCATION_IP is the input value name.
ORDER BY Clause
pft.flow_name Optionally, to secure the value set, select the Data Security check box and provide the Data Security Resource Name.
Note: You can enable data security only if the value set is based on a single table or view.-
Click Save.
Add the Value Set Codes to the Payroll Flow
-
Use the Payroll Flow Patterns task from Payroll in My Client Groups on the Home page.
- Create a flow to meet your requirements, add the required tasks, and arrange them in a sequence.
-
Select the Parameters tab, and click Create, and create an empty parameter.
-
Select the new parameter and click Edit and add these parameter details.
Field
Value
Display Format
Value Set
Lookup
Enter the Value Set Name, LOCATION_VS, in this example.
-
Optionally, enter the Owner and Checklist information, and then click Next.
- Click Submit. When you run the flow, the Location parameter renders as a smart list of values. You can use the search option to select a location.