AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDataEntryTemplateManager.GetDataEntryTemplate Method (IFolder, String)

Retrieves an `IDataEntryTemplate` in a folder by its name.

IDataEntryTemplate GetDataEntryTemplate(
IFolder folder,
string name
);

#### Parameters

folder
  The folder containing the `IDataEntryTemplate`; cannot be `null`.
name
  name of the `IDataEntryTemplate`; cannot be `null`, empty, or longer than 255 characters. The string used for the name will be trimmed of leading and trailing whitespace and is case-insensitive during comparison.

#### Return Value

The `IDataEntryTemplate` in the folder with the specified name; otherwise `null`.

#### Remarks

The specified name is the full name of the Data Entry Template. The `name` will be trimmed of leading and trailing whitespace and is case-insensitive for comparison. The `name` does not support wildcards.

    // Assuming a dataEntryTemplate is persisted in containingFolder
    // Retrieve the Data Entry Template by name
    IDataEntryTemplate sameDataEntryTemplate = dataEntryTemplateManager.GetDataEntryTemplate(containingFolder, dataEntryTemplate.Name);
    // sameDataEntryTemplate.UUID is the same as dataEntryTemplate.UUID

#### Exceptions

Exception Type | Condition
--- | ---
ContentException | The method call resulted in a Publisher exception.
SoapException | There was a communication problem during the execution of the remote method call.
InvalidOperationException | The folder has not yet been stored or has already been removed.
ContentSecurityException | The user does not have permission to access the folder.
ArgumentException | The name is an empty string or longer than 255 characters.

#### See Also

IDataEntryTemplateManager Interface | Plumtree.Remote.PRC.Content.DataEntryTemplate Namespace | IDataEntryTemplateManager.GetDataEntryTemplate Overload List