Skip to Content
0
Dec 19, 2022 at 06:55 AM

Enable Picklist option only for API

49 Views

Entity: Candidate profile

Mode: API

One of my client has 10 custom columns in candidate profile data modal each are mandatory for each country.

For ex.

1. custIndiaPreferredLocation - This is applicable only for people applying for India requisition based on the office location available in office location picklist

2. custUKPreferredLocation - This is applicable only for people applying for UK requisition based on the office location available in office location picklist.

The challenge is, customer has made these all fields as mandatory and hiding the columns wherever these are not applicable. SF wont trigger the required field validator until its been displayed in UI. But we've a requirement for third party application to send data to SF and not all columns are required to be available for candidate sync. For Ex: India candidates wont have any data for "custUKPreferredLocation".

So we are exploring if we can have a default option value in all these pick-lists but not to be available in UI. This needs to be available only for API calls. Because we don't want actual candidates to be populated with dummy values where actually it is applicable.

Can some one help me with this? Or is there any other way to achieve this like bypass the SF required field validator and force data sync to SF?