Workday integration custom field mapping for HR profile table

ArpitaVK
Tera Guru

Hi Community,

We are troubleshooting an issue with our Workday-to-ServiceNow HRSD integration where the custom fields 'worker type' and 'worker subtype' are not populating as expected on the HR profile table.

 

1. The flow where mapping is configured:

1.1  Get Workers Service (Custom) - This subflow is copied from the OOB subflow Get Workers Service.

ArpitaVK_0-1796118271354.png

In action 3, the field 'worker type' is mapped by dot-walking the output variable from lookup action 2:

ArpitaVK_1-1796118787431.png

 

while the field 'worker subtype' is mapped using a script:

 
var workerJobData = fd_data._2__copy_of_look_up_workers_and_employment_info_custom.worker.WorkerData.EmploymentData.workerJobData;
var EmployeeTypeID = "";
var ContingentWorkerTypeID = "";
if(workerJobData.length >= 1) {
    EmployeeTypeID = workerJobData[0].PositionData.WorkerTypeReference.EmployeeTypeID;
    ContingentWorkerTypeID = workerJobData[0].PositionData.WorkerTypeReference.ContingentWorkerTypeID;
    if (EmployeeTypeID != '') {       
        return EmployeeTypeID;
    } else {  
        return ContingentWorkerTypeID;
    }
}

 

2. What we observed in the staging table is:

2. 1. For some records, the data is populated in the respective fields when the state is pending, but its value is cleared out at the time of mapping.

2. 2. For some records, the data for these two fields does not get populated at all in the staging table itself.

 

3. What we tried so far:

3.1. Passing the hardcoded value from the flow for one of the fields. 

3.2. We added the exact same mapping from flow action 3 into flow actions 9 and 11. 

But it shows the same behavior mentioned in point 2.1.

3.3. For some other string fields on the staging table, we added the exact same mapping in action 3 to populate worker type and subtype.

Worker type -> Nationality

Worker subtype -> Country of birth

It populates the data in the staging table but is somewhat inconsistent as well. We also observed that Country of birth shows the value in the staging table, but the worker subtype field does not.

ArpitaVK_2-1796119517973.png


We are still finding the root cause and looking for a workaround.
Your guidance is much appreciated! Thanks!

0 REPLIES 0