AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortletTemplateManager.CreatePortletTemplate Method

Returns an `IPortletTemplate` object that represents a new Portlet Template in the portal.

IPortletTemplate CreatePortletTemplate(
int parentFolderID,
int webServiceID
);

#### Parameters

parentFolderID
  The folder in which to create the new Portlet Template.
webServiceID
  The ID of the Web Service with which to create this Portlet Template.

#### Return Value

An object representing the new Portlet Template; the object will not be saved in the portal until `IPortletTemplate.Save()` is called.

#### Remarks

Note: This Portlet Template will not be created in the portal until the `IPortletTemplate.Save()` method is called.

#### Exceptions

Exception Type | Condition
--- | ---
NoSuchObjectException | There is no Portlet Template with the specified ID.
HttpException | The query interface URL is not valid.
PortalException | The operation resulted in an error in the portal.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

IPortletTemplateManager Interface | Plumtree.Remote.PRC Namespace