CSC Apex API Developer Reference

csc.CreateObjectiveFromTemplateRequest

global with sharing class CreateObjectiveFromTemplateRequest extends CreateSObjectFromTemplateRequest

The request object which is passed to the service in order to create a new objective from a template.

Enums

Options

Set of additional options to use in create objective from template process. COPY_CS_SKILLS_FROM_PLAYBOOK: Value to indicate whether cs skills need to be copied from playbook or not.

Methods

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId)

A constructor method to create a request. Requests constructed with just a template ID will clone the template in its entirety, with the exception of the following fields: csc__Objective_Owner__c, csc__Status__c, and csc__Success_Plan__c. User-generated custom fields are also not cloned.

Input Parameters

Name Type Description
templateId Id ID of the objective template to be cloned.

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId, Set<CreateObjectiveFromTemplateRequest.Options> options)

A constructor method to create a request. Requests constructed with just a template ID will clone the template in its entirety, with the exception of the following fields: csc__Objective_Owner__c, csc__Status__c, and csc__Success_Plan__c. User-generated custom fields are also not cloned.

Input Parameters

Name Type Description
templateId Id ID of the objective template to be cloned.
options Set<CreateObjectiveFromTemplateRequest.Options> Set of additional options to use in create objective from template process. Eg: COPY_CS_SKILLS_FROM_PLAYBOOK: Value to indicate whether cs skills need to be copied from playbook or not.

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId, Map<SObjectField, Object> fieldsToPopulate)

A constructor method to create a request.

Input Parameters

Name Type Description
templateId Id ID of the objective template to be cloned.
fieldsToPopulate Map<SObjectField, Object> Key-value pairs denoting initial field values for the resulting objective.

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId, Map<SObjectField, Object> fieldsToPopulate, Set<CreateObjectiveFromTemplateRequest.Options> options)

A constructor method to create a request.

Input Parameters

Name Type Description
templateId Id ID of the objective template to be cloned.
fieldsToPopulate Map<SObjectField, Object> Key-value pairs denoting initial field values for the resulting objective.
options Set<CreateObjectiveFromTemplateRequest.Options> Set of additional options to use in create objective from template process. Eg: COPY_CS_SKILLS_FROM_PLAYBOOK: Value to indicate whether cs skills need to be copied from playbook or not.

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId, Map<SObjectField, Object> fieldsToPopulate, Map<SObjectType, Set<Id>> relatedRecordsIdMap)

A constructor method to create a request.

Input Parameters

Name Type Description
templateId Id ID of the objective template to be cloned.
fieldsToPopulate Map<SObjectField, Object> Key-value pairs denoting initial field values for the resulting objective.
relatedRecordsIdMap Map<SObjectType, Set<Id>> Key-value pairs denoting selected Ids of related SObjects for cloning.

CreateObjectiveFromTemplateRequest

global CreateObjectiveFromTemplateRequest(Id templateId, Map<SObjectField, Object> fieldsToPopulate, Map<SObjectType, Set<Id>> relatedRecordsIdMap, Set<CreateObjectiveFromTemplateRequest.Options> options)

A constructor method to create a request.

Input Parameters

Name Type Description
templateId Id ID of an existing objective template to be cloned.
fieldsToPopulate Map<SObjectField, Object> Key-value pairs denoting initial field values for the resulting objective.
relatedRecordsIdMap Map<SObjectType, Set<Id>> Key-value pairs denoting selected Ids of related SObjects for cloning.
options Set<CreateObjectiveFromTemplateRequest.Options> Set of additional options to use in create objective from template process. Eg: COPY_CS_SKILLS_FROM_PLAYBOOK: Value to indicate whether cs skills need to be copied from playbook or not.
© Copyright 2009–2025 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.