Clones an email template.

Prerequisite:

The email template you are cloning must exist in your org.


APISignature
cloneEmailTemplatewebService static Id cloneEmailTemplate(Id originalId)



Request Parameter
NameTypeDescription
originalIdIDThe ID of email template you want to clone.



Response - Apttus_Proposal_Proposal_c
FieldTypeDescription
newTemplateIdIDThe ID of the cloned email template.


Code Sample

The sample code below enables you to clone an email template and get the ID of the cloned email template.


/**
 * The below code demonstrates how to clone from existing email template.
 */
Public Id cloneMailTemplate(Id originalID) {
	Id newTemplateId = Apttus_Proposal.ProposalWebService.cloneEmailTemplate(originalID);
	return newTemplateId;
}
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.

API Prerequisites

None.

Response/Request XML

Example Request

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:prop="http://soap.sforce.com/schemas/class/Apttus_Proposal/ProposalWebService">
    <soapenv:Header>
        <prop:SessionHeader>
            <prop:sessionId>00DZ000000NAEIA!ASAAQKosATSpsGeD7FUh4RDI18xnzIFPe80Mk89ejrAmDrCBY2lmyJKQjKvuwj3TvT71r6g_epvbo6FeqKUPfmSookHTttOu</prop:sessionId>
        </prop:SessionHeader>
    </soapenv:Header>
    <soapenv:Body>
        <prop:cloneEmailTemplate>
            <prop:originalId>a09i000000TGec8</prop:originalId>
        </prop:cloneEmailTemplate>
    </soapenv:Body>
</soapenv:Envelope>

XML

Example Response

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="http://soap.sforce.com/schemas/class/Apttus_Proposal/ProposalWebService">
    <soapenv:Body>
        <cloneEmailTemplateResponse>
            <result>00XZ0000000o333MAA</result>
        </cloneEmailTemplateResponse>
    </soapenv:Body>
</soapenv:Envelope>
XML