Name
sn_hr_integrations.hrIntegrationsDataRetrieverFactory
Description
No description available
Script
var hrIntegrationsDataRetrieverFactory = Class.create();
hrIntegrationsDataRetrieverFactory.getDataRetriever = function(sourceId) {
var externalSource = new GlideRecord(hrIntegrations.HR_INT_SOURCE);
if (externalSource.get(sourceId)) {
/* The following code is required for customers upgrading to Madrid from a previous version.
If you upgrade your instance, do not delete the following line.*/
if (externalSource.getValue("name") == hrIntegrations.WORKDAY_SOURCE_NAME)
return new HRIntegrationsWorkdayDataRetriever();
else if (externalSource.getValue("name") == hrIntegrations.SUCCESSFACTOR_SOURCE_NAME) {
/*This block of code is needed to support the upgrade of customers using the SF integration.
If you upgrade your instance, do not delete this block.*/
return new HRIntegrationsSuccessFactorDataRetriever();
}
}
return new HRIntegrationDataRetriever();
};
Sys ID
b5fdcf409ff032003be01050a57fcfed