Candidate Mapping Examples
Below are two examples of how a Candidate A person looking for a job. A candidate can also be referred to as a Job Seeker, Applicant, or Provider. Mapping Custom Metadata Type record is mapped from the XML
Used to create custom markup languages in order to display information on the Internet. We use XML when sending jobs to Indeed for syndication. record.
Example 1
<Candidate>
<Personal>
<FirstName>John<FirstName>
<LastName>Smith<LastName>
<Initials>JC</Initials>
<Gender>Male</Gender>
<Email>john.smith@yahoo.com<Email>
<MobilePhones>
<MobilePhone>+12188675309</MobilePhone>
<MobilePhones>
<Personal>
<Candidate>
Using the above image, create a new record in Candidate Mapping Custom Metadata Type for Mobile:
Field Name | Value |
---|---|
Label | Mobile |
Candidate Mapping Name | Mobile |
Action![]() |
Override |
Object | Contact |
Field API![]() |
MobilePhone |
Default Value | (blank) |
XPath | Candidate/Personal/MobilePhones |
XML Node | MobilePhone |

XPath: The Xpath field needs the complete Path of the Node from to the desired value. When the code will be executed for the following :
XPath / XML Node: Candidate/Personal/MobilePhones/ MobilePhone
It will get this value “+347875723446”.
Example 2
This second example to further clarifies the importance of the Xpath field. The data we want to map is the location of the Candidate’s employers.
<EmploymentHistory>
<EmploymentItem>
<JobTitle>Junior Front-end Web Developer</JobTitle>
<EmployerName></EmployerName>
<EmployerLocation></EmployerLocation>
<Address>
<EmployerCity>Madrid</EmployerCity>
<EmployerRegion>ES Madrid</EmployerRegion>
<EmployerCountry>Spain</EmployerCountry>
<Address>
<YearsExperience>8</YearsExperience>
<Dates>
<StartDate>2011-10-01</StartDate>
<EndDate>
<YearMonth>2019-10<YearMonth
</EndDate>
<Dates>
</EmploymentItem>
<EmploymentHistory>
Field Name | Value |
---|---|
Label | Region |
Candidate Mapping Name | Region |
Action | n.a. |
Object | TR1__EmploymentHistory__c |
Field API Name | TR1__Region__c |
Default Value | n.a. |
XPath | Address |
XML Node | EmployerRegion |
To get the value of Region from the XML node, the following two fields are important:
- XML Node: EmployerRegion
- XPath: Address
The XPath field considers the complete path of the Node from that holds the desired value. When the code will be executed for the following:
EmploymentHistory / EmploymentItem / XPath / XML Node:
EmploymentHistory / EmploymentItem / Address / EmployerRegion
This value “ES Madrid” is returned. EmploymentHistory and EmploymentItem will be added in the code.