Skip to navigation

RequestTemplates

View as Markdown

This method returns a list of server side templates available for this account. The list format is the same as in the EnvelopeTemplateDefinition in the RequestTemplate section.

Schema

RequestTemplates
// Request all the templates that this account has on file
DocuSignWeb.EnvelopeTemplateDefinition[] response = _apiClient.RequestTemplates(_accountId,
false);
// Print out information about the templates
foreach (DocuSignWeb.EnvelopeTemplateDefinition def in response)
{
Console.WriteLine("Retrieved template definition with ID {0} with name \"{1}\"",
def.TemplateID, def.Name);
}
NameSchema TypeDescription
AccountIdDSXIdAccount to request the templates for. If left blank the API user’s default account will be used.
IncludeAdvancedTemplatesBooleanIf true, this will return templates with advanced features, (advanced features are those not supported by DSPro). If false, only templates without advanced features are returned.

Rules and exceptions for RequestTemplates

  • Account_Lacks_Permissions – account does not have permissions to use this API.
  • User_Lacks_Permissions – user does not have permissions to use this API.