![]() Human Capital Management Apex API Developer Reference
|
vanahcm.JobApplicationServiceglobal with sharing class JobApplicationService Represents a Job Application service structure Methods
getByIdglobal static List<vanahcm.CommonService.JobApplication> getById(Set<ID> ids, Set<Schema.SObjectField> customFields) Get job application records based on job application ID Input Parameters
Return ValueList of JobApplication Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<Id> jobApplicationIds = new Set<Id>(); jobApplicationIds.add('a1qj0000001Fgqt'); Set<Schema.SObjectField> customFields = new Set<Schema.SObjectField>{vanahcm__Job_Application__c.vanahcm__Number__c}; List<vanahcm.CommonService.JobApplication> jobApplications = vanahcm.JobApplicationService.getById(jobApplicationIds, customFields); getByCandidateglobal static List<vanahcm.CommonService.JobApplication> getByCandidate(Set<ID> ids, Set<Schema.SObjectField> customFields) Get job application records based on job application's candidate ID Input Parameters
Return ValueList of JobApplication Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<Id> candidateIds = new Set<Id>(); //Add CandidateId of vanahcm__Job_Application__c to candidateIds candidateIds.add('a1qj0000001Fgqt'); Set<Schema.SObjectField> customFields = new Set<Schema.SObjectField>{vanahcm__Job_Application__c.vanahcm__Number__c}; List<vanahcm.CommonService.JobApplication> jobApplications = vanahcm.JobApplicationService.getByCandidate(candidateIds, customFields); getByCandidateEmailglobal static List<vanahcm.CommonService.JobApplication> getByCandidateEmail(Set<String> emails, Set<Schema.SObjectField> customFields) Get job application records based on job application's candidate email Input Parameters
Return ValueList of JobApplication Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<String> candidateemails = new Set<String>(); //Add Email of vanahcm__Job_Application__c to emails candidateemails.add('foo@bar.com'); Set<Schema.SObjectField> customFields = new Set<Schema.SObjectField>{vanahcm__Job_Application__c.vanahcm__Number__c}; List<vanahcm.CommonService.JobApplication> jobApplications = vanahcm.JobApplicationService.getByCandidateEmail(candidateemails, customFields); getByApplicantIdglobal static List<vanahcm.CommonService.JobApplication> getByApplicantId(Set<String> applicantIds, Set<Schema.SObjectField> customFields) Get job application records based on job application's applicant ID Input Parameters
Return ValueList of JobApplication Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<String> applicantIds = new Set<String>(); //Add Applicant Id of vanahcm__Job_Application__c to applicantIds applicantIds.add('23'); Set<Schema.SObjectField> customFields = new Set<Schema.SObjectField>{vanahcm__Job_Application__c.vanahcm__Number__c}; List<vanahcm.CommonService.JobApplication> jobApplications = vanahcm.JobApplicationService.getByApplicantId(applicantIds, customFields); getByJobOpeningglobal static List<vanahcm.CommonService.JobApplication> getByJobOpening(Set<ID> ids, Set<Schema.SObjectField> customFields) Get job application records based on job application's job opening ID Input Parameters
Return ValueList of JobApplication Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<Id> jobOpeningIds = new Set<Id>(); //Add JobOpeningId of vanahcm__Job_Application__c to jobOpeningIds jobOpeningIds.add('a1qj0000001Fgqt'); Set<Schema.SObjectField> customFields = new Set<Schema.SObjectField>{vanahcm__Job_Application__c.vanahcm__Number__c}; List<vanahcm.CommonService.JobApplication> jobApplications = vanahcm.JobApplicationService.getByJobOpening(jobOpeningId, customFields); createglobal static List<ID> create(List<vanahcm.CommonService.JobApplication> jobApplications) Insert job applications Input Parameters
Return ValueList of ID Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. vanahcm.CommonService.JobApplication jobApplication = new vanahcm.CommonService.JobApplication(); jobApplication.JobOpening = 'a0nj000000KcOqN'; jobApplication.Candidate = 'a0nj000000KceqN'; List<vanahcm.CommonService.JobApplication> jobApplications = new List<vanahcm.CommonService.JobApplication>(); jobApplications.add(jobApplication); List<ID> results = vanahcm.JobApplicationService.create(jobApplications); modifyglobal static List<ID> modify(List<vanahcm.CommonService.JobApplication> jobApplications) Insert or update job applications Input Parameters
Return ValueList of ID Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. vanahcm.CommonService.JobApplication jobApplication = new vanahcm.CommonService.JobApplication(); jobApplication.Id = 'a20xs00230234sde'; jobApplication.JobOpening = 'a0nj000000KcOqN'; jobApplication.Candidate = 'a0nj000000KceqN'; List<vanahcm.CommonService.JobApplication> jobApplications = new List<vanahcm.CommonService.JobApplication>(); jobApplications.add(jobApplication); List<ID> results = vanahcm.JobApplicationService.modify(jobApplications); |