UpdateResourceAvailabilityAndCube Method

Description

Starts the process that generates the resource availability tables on Microsoft Office Project Server 2003. It optionally generates the OLAP cube for Portfolio Analyzer.

Syntax

<Request>
   <UpdateResourceAvailabilityAndCube>
      <BuildCube></BuildCube>
      <ServerName>/ServerName>
      <CubeName></CubeName>
      <CubeDescription/>
      <CubeStartDate></CubeStartDate>
      <CubeFinishDate></CubeFinishDate>
      <ResourceAvailabilityStartDate></ResourceAvailabilityStartDate>
      <ResourceAvailabilityEndDate></ResourceAvailabilityEndDate>
   </UpdateResourceAvailabilityAndCube>
</Request>

Parameters

Dates may be entered as YYYYMMDD or YYYYMMDDHHMMSS. If the hours, minutes and seconds are included, they should be set to the exact day (for example, 20031021000000). The date must fall within the range 1984 to 2049, inclusive.

BuildCube

Required. If the BuildCube parameter is set to 0, the PDS calls the process that only updates the resource availability tables. If BuildCube is set to 1, the PDS also calls the process that builds the cube for Portfolio Analyzer.

Note The following parameters are required only if BuildCube is set to 1.

CubeStartDate

Required. Cube start date.

CubeFinishDate

Required. Cube finish date.

CubeName

Required. Cube name.

CubeDescription

Required. Cube description.

ServerName

Required. Server name.

ResourceAvailabilityStartDate

Required. Resource availability start date.

ResourceAvailabilityEndDate

Required. Resource availability end date.

Return Value

If any parameters are omitted, the PDS returns a generic error code indicating that a required parameter for the request is missing (rsRequestParameterMissing = 34). Once the asynchronous update process is started, 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, and determines whether that user has the necessary administrative permissions.