Navigation From Assigned Payroll
As shown in the figure, the Assigned Payroll object is a part of Payroll and closely linked to the When and Why object.
![This figure shows how the Assigned Payroll object is linked with other payroll objects.](images/Autocomplete_Payroll_20078827.png)
From Assigned Payroll to Other Objects
This table lists the objects that you can navigate to from the Assigned Payroll object.
From Object |
How |
Purpose |
---|---|---|
Assigned Payroll |
Row Variable |
To navigate to the Payroll Assignments business object traversing row variable on Get Payroll Assignments. For example, to navigate to HR assignment, first you get a handle to Payroll Assignments. |
Here's the sample script for defaulting payroll based on Legal entity.
Rule Logic
{
The variable value isNewHire = Get String value from HCM Params (PAY_ADD_ASSIGNMENT,AssignedPayroll.Current row)
The variable value payAssignRow = Get first row(AssignedPayroll.PayrollAssignmentVA)
The variable value hrAssignRow = Get first row(payAssignRow.AssignmentVA)
if
(
isNewHire Equals to true
)
{
if
(
hrAssignRow.Legal Entity ID In CRFL2TUS_PV
)
{
AssignedPayroll.PaytollId = CRFL Monthly PD | CRF RRF US LDG ONE
}
}
}