This API clones all the attachments and files associated with the source email template and associate them with the newly cloned email template. This API is a callback API of cloneEmailTemplate API.
API
Signature
afterEmailTemplateClone
webService static Boolean afterEmailTemplateClone(Id originalId, Id cloneId)
Request Parameter
Name
Type
Description
originalId
ID
The ID of email template you want to clone.
cloneId
ID
The ID of the cloned proposal where you want to clone the attachments or files.
Response Parameter
Field
Type
Description
isSuccess
Boolean
Indicates whether the cloning pf the document template was successful. The values are true and false.
Code Sample
The sample code below allows you to clone an email template and attachments or files from the parent email template and associate to the newly cloned email template.
/**
* The below code clone email template and the callback function of cloning the document template from the source
* and associate with the cloned email template. It returns boolean based on the status of after clone action.
*/
public Boolean AfterCloneEmailTemplate(Id SrourceID) {
Boolean afterCloneAPIStatus = false;
Id clonedId = Apttus_Proposal.ProposalWebService.cloneEmailTemplate(SrourceID);
afterCloneAPIStatus = Apttus_Proposal.ProposalWebService.afterEmailTemplateClone(SrourceID, clonedId);
return afterCloneAPIStatus;
}
CODE
Integration Details
Use the following information in your integrations with CPQ Web Services API. Refer to Integrating Conga with External Systems for information on how to get started.