AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDataEntryTemplateManager.CreateDataEntryTemplate Method

Creates a new `IDataEntryTemplate`.

IDataEntryTemplate CreateDataEntryTemplate(
IFolder containingFolder,
string name
);

#### Parameters

containingFolder
  The folder the Data Entry Template will be created in; cannot be `null`.
name
  Name of the template; cannot be `null`, empty, or longer than 255 characters. The string used for the name will be trimmed of leading and trailing whitespace when it is stored and is case-insensitive during name comparison.

#### Return Value

An `IDataEntryTemplate` that has not been persisted yet. Call `IDataEntryTemplate.`Store to persist the template.

#### Remarks

This method does not create a persistent object. To properly define a Data Entry Template, use this method to create a new template and add one or more properties to the template using `IDataEntryTemplate.AddProperty`. Any sub-type of `IBaseProperty` can be added. When you are finished, use `IDataEntryTemplate.Store` to persist the Data Entry Template.

An `InvalidOperationException` will be thrown if the containing folder has not been stored.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The specified folder has not yet been stored or has already been removed.
ArgumentException | The name is an empty string or longer than 255 characters.

#### See Also

IDataEntryTemplateManager Interface | Plumtree.Remote.PRC.Content.DataEntryTemplate Namespace