![]() Human Capital Management Apex API Developer Reference
|
vanahcm.JobQuestionSetServiceglobal with sharing class JobQuestionSetService Represents a Job Question Set service structure Methods
getByIdglobal static List<vanahcm.CommonService.JobQuestionSet> getById(Set<ID> ids, Map<Schema.SObjectType, Set<Schema.SObjectField>> customFields) Get job question set with related job question records based on job question set ID Input Parameters
Return ValueList of JobQuestionSet 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> jobQuestsionSetIds = new Set<ID>(); jobQuestsionSetIds.add('a0nj000000KcOqN'); Map<Schema.SObjectType, Set<Schema.SObjectField>> customFields = new Map<Schema.SObjectType, Set<Schema.SObjectField>>{ vanahcm__Job_Question_Set__c.SObjectType => new Set<Schema.SObjectField>{vanahcm__Job_Question_Set__c.vanahcm__Description__c}, vanahcm__Job_Questions__c.SObjectType => new Set<Schema.SObjectField>{vanahcm__Job_Questions__c.CreatedById}}; List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets = vanahcm.JobQuestionSetService.getById(jobQuestsionSetIds, customFields); getByNameglobal static List<vanahcm.CommonService.JobQuestionSet> getByName(Set<String> names, Map<Schema.SObjectType, Set<Schema.SObjectField>> customFields) Get job question set with related job question records based on job question set Name Input Parameters
Return ValueList of JobQuestionSet 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> names = new Set<String>(); //Add Name of vanahcm__Job_Question_Set__c to names names.add('foo bar'); Map<Schema.SObjectType, Set<Schema.SObjectField>> customFields = new Map<Schema.SObjectType, Set<Schema.SObjectField>>{ vanahcm__Job_Question_Set__c.SObjectType => new Set<Schema.SObjectField>{vanahcm__Job_Question_Set__c.vanahcm__Description__c}, vanahcm__Job_Questions__c.SObjectType => new Set<Schema.SObjectField>{vanahcm__Job_Questions__c.CreatedById}}; List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets = vanahcm.JobQuestionSetService.getByName(names, customFields); createglobal static List<vanahcm.JobQuestionSetService.Result> create(List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets) Insert Job Question Sets with related Job Questions Input Parameters
Return ValueList of Result 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.JobQuestionSet jobQuestionSet = new vanahcm.CommonService.JobQuestionSet(); jobQuestionSet.Description = 'foo bar'; jobQuestionSet.Name = 'foo bar'; List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets = new List<vanahcm.CommonService.JobQuestionSet>(); jobQuestionSets.add(jobQuestionSet); List<vanahcm.JobQuestionSetService.Result> results = vanahcm.JobQuestionSetService.create(jobQuestionSets); modifyglobal static List<vanahcm.JobQuestionSetService.Result> modify(List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets) Insert or update Job Question Sets with related Job Questions Input Parameters
Return ValueList of Result 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.JobQuestionSet jobQuestionSet = new vanahcm.CommonService.JobQuestionSet(); jobQuestionSet.Id = 'a20xs00230234sde'; jobQuestionSet.Description = 'foo bar'; jobQuestionSet.Name = 'foo bar'; List<vanahcm.CommonService.JobQuestionSet> jobQuestionSets = new List<vanahcm.CommonService.JobQuestionSet>(); jobQuestionSets.add(jobQuestionSet); List<vanahcm.JobQuestionSetService.Result> results = vanahcm.JobQuestionSetService.modify(jobQuestionSets); vanahcm.JobQuestionSetService.Resultglobal with sharing class Result Represents a Result Properties
|