Add/Update EEOC Source

Tagged:

Currently contains 7 posts

Avatar

November 08, 2018 15:22

hirenexus

Our code is updating the EEOC Source field properly but in PCR it’s not showing the value to the users. EEO Source appears blank even though when I use the API tool, it shows values:

EEOC”: [
{
“Field”: “source”,
“Values”: [
{
“JobId”: 141883186537628,
“Value”: “MRINetwork”
},
{
“JobId”: 769992919919379,
“Value”: “Posting MRINetwork”
},
{
“JobId”: 845235786097208,
“Value”: ""
},
{
“JobId”: 940171240434201,
“Value”: ""
},
{
“JobId”: 999911745874648,
“Value”: “Posting MRINetwork”
}

How do I get it to display on the front end to PCR users?

Avatar

November 08, 2018 15:23

hirenexus

I tried to not include a JobId and I don’t believe that did anything.

Avatar

November 08, 2018 15:34

hirenexus

I figured it out. I commented out the JobId line and this worked to display it in the field on the front end:

EEOC” => array(
array(“Field” => “Source”,
“Values” => array(
array(
// “JobId” => "",
“Value” => $eeosource
)
)
))

Avatar

November 08, 2018 15:45

Wayne-PCRecruiter

When submitting the EEO Source through the API it is important to include an entry where the JobId is set to a 0. The zero value denotes the latest entry which is what users will see in the user interface. Below is an example:

{
“FirstName”: “Bob”,
“LastName”: “Smith”,
EEOC”: [{
“Field”: “Source”,
“Values”: [{
“JobId”: 0,
“Value”: “Pcr Source”
},
{
“JobId”: 111643530110776,
“Value”: “Pcr Source”
}
]
}]
}

Avatar

November 08, 2018 15:47

Wayne-PCRecruiter

It is important if you know that applicant was applying to the Job to include the JobId as it will permanently create a relation in the database for that candidate to that job.

Avatar

November 08, 2018 15:55

hirenexus

Ah, okay, so we can submit multiple values then. That is perfect.

Avatar

November 08, 2018 15:58

Wayne-PCRecruiter

You can submit multiple values. Just make sure to set the one you want to be displayed in the record a second time with a 0 in the event you are setting the values for jobid as the applicant may have applied to multiple jobs.

Reply to thread