SchedulingContext Method

Description

Gets the list of projects that are related to the specified projects and/or enterprise resources in Microsoft Office Project Server 2003.

Syntax

A group of at least one set of ProjectIDs or ResourceUIDs is required in the following format:

<Request>
    <SchedulingContext>
        <ProjectIDs>
            <ProjRef></ProjRef>
            <ProjRef></ProjRef>
            . . .
        </ProjectIDs>
        <ResourceUIDs>
            <ResourceUID></ResourceUID>
            <ResourceUID></ResourceUID>
            . . .
        </ResourceUIDs>
        <OpenProjects>
            <ProjRef></ProjRef>
            <ProjRef></ProjRef>
            . . .
        </OpenProjects>
    </SchedulingContext>
</Request>

Parameters

ProjectIDs

A group of one or more project IDs, specified by ProjRef.

ResourceUIDs

A group of resource unique IDs in the Enterprise Resource Pool, specified by ResourceUID.

OpenProjects

Optional. OpenProjects is meant only for internal use by Microsoft Office Project Professional 2003 or Microsoft Office Project Web Access, and serves no purpose for third-party use.

Return Value

If the request is successful, SchedulingContext returns a successful HRESULT and STATUS, and a list of related projects with the type of relationship.

 <Reply>
    <HRESULT></HRESULT>
    <STATUS></STATUS>
    <SchedulingContext>
      <Project>
        <ProjectID></ProjectID>
        <ProjectName></ProjectName>
        <Relationship></Relationship>
        <RelatedTo></RelatedTo>
      </Project>
    </SchedulingContext>
  </Reply>

Remarks

A relationship can exist between projects when:

  • Projects share enterprise resources (either those on the project team or in the input list).

  • The projects have inter-project dependencies (cross-project links).

  • Projects share resources with or have cross-project links with projects that are related to projects in the input list.

The last case in this list describes an indirect relationship.