How to add custom fields for Candidate Search & Match.
While Affinda returns a wide range of data from resumes as standard, often customers will have other additional data typically not found in these documents that they would like to include in search criteria. Examples of this may include salary expectations, availability, or recruiters’ notes from interviews.Affinda has functionality available for users to add custom data to candidate records and then to be able to search across this, either via API or through the Search UI.
To be able to add custom data to a candidate, the data point needs to be first created for your Organization. Custom data points can be any of the following types:
Boolean (true / false)
Date
Number
String
To create these data points, get in touch with the Affinda team who will add the fields to your Organization.Once created, custom data can be added in two ways.
Create a new candidate record by sending a resume data object (i.e. without parsing a document) that includes the custom data field.For more information, see Adding and Updating Candidates Data.
Creating an initial annotationTo populate the custom fields, customers can add annotations using the Post Annotations API.Required details include:
Document: The unique identifier for the document to be updated
Page Index: Set to 0 where the data point doesn’t exist on the document
Field: Custom field’s unique identifier
Parsed Value: The post-processed value (e.g., “AU” for Australia)
After successful submission of the annotation request, the response includes an annotation ID (e.g., “id”: 176932535). Store this ID for any future updates to the annotation value. The custom field’s value is then updated in the document, which can be viewed in the Affinda web application.Updating annotation valueTo update annotation values after initial creation, use the Patch Annotations API. Required details include:
**Annotation ID: **Created after the first document patch
Document: The unique identifier for the document to be updated
Page Index: Set to 0 where the data point doesn’t exist on the document
Parsed Value: The post-processed value (e.g., “AU” for Australia)
Custom fields can be searched through the Search UI by updating the embeddable URL configuration. For more information, see Customising and Embedding the Search UI.