VersionCreate Method
Description
Creates a new version in Microsoft Office Project Server 2003. The PDS ensures that the specified Version name is unique and, if so, adds the version name and type to the versions value list.
Syntax
<Request>
<VersionCreate>
<Version></Version>
<GanttBarStyle></GanttBarStyle>
<Type></Type>
</VersionCreate>
</Request>
Parameters
Version
Required. The version name.
GanttBarStyle
Required. Valid values for GanttBarStyle are 1 through 40.
Type
Optional. Valid values for Type are 0 for regular versions, and 1 for archived versions. The default value is 0.
Return Value
If the call is successful, the PDS returns a successful HRESULT and STATUS.
<Reply>
<HRESULT></HRESULT>
<STATUS></STATUS>
<UserName></UserName>
</Reply>
Remarks
The PDS checks Project Server security for the currently logged-on user, determines whether that user is a valid Project Server user, and checks whether that user has administration permission to create a new version for the valid version value lists.