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.

afterEmailTemplateClonewebService static Boolean afterEmailTemplateClone(Id originalId, Id cloneId)

Request Parameter
originalIdIDThe ID of email template you want to clone.
cloneIdIDThe ID of the cloned proposal where you want to clone the attachments or files.

Response Parameter
isSuccessBooleanIndicates 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;

Integration Details

Use the following information in your integrations with Apttus CPQ Web Services API. Refer to Integrating Apttus with External Systems for information on how to get started.

API Prerequisites

Response/Request XML

Example Request (click to expand)


Example Response (click to expand)