Deleting an Email Template
The API deletes an email template.
API |
Signature |
---|---|
deleteEmailTemplate |
webService static Boolean deleteEmailTemplate(Id templateId) |
Request Parameter |
||
---|---|---|
Name |
Type |
Description |
templateId | ID |
The ID of the email template sobject you want to delete. |
Response Parameter |
||
---|---|---|
Field |
Type |
Description |
isDeleted |
|
Indicates whether the email template was deleted. |
Code Sample
The sample code below enables you to delete an email template and return the status of the delete action.
/**
* The below code demonstrates how to delete existing email template.
*/
Public Boolean deleteMailTemplate(Id templateId)
{
Boolean isDeleted = Apttus_Proposal.ProposalWebService.deleteEmailTemplate(templateId);
return isDeleted;
}