createProject

Purpose

Create a project and its associated request in PPM.

Function

Create a project with name, project type, and period.

Related Information

Data Type: ProjectType

Input

ProjectType with the following required information:

  • Project name

  • Project type name or ID

  • A list of project manager user names. At least one user name should be provided.

  • Planned start period full name

  • Planned finish period full name

  • Region name

All other information is optional. Specify the information only when you need to create a project with the corresponding information.

Return

CreateProjectResultType

The project ID and request ID are returned if the project is created successfully.

Java Examples

See webservice_toolkit:

java\client\src\examples\pm\ProjectServiceClient.java

createProject()

CreateProjectDocument createProjDoc =
CreateProjectDocument.Factory.newInstance();
ProjectType projectBean =
createProjDoc.addNewCreateProject().addNewProjectBean();
projectBean.setProjectTypeName("Enterprise");
projectBean.setRegionName("US West Coast");
projectBean.addProjectManagerUserName("user1");
projectBean.setPlannedStartPeriodFullName("January 2007");
projectBean.setPlannedFinishPeriodFullName("June 2007");
projectBean.setProjectName(projectName);
ProjectServiceStub stub = new ProjectServiceStub(ctx, WSURL);
CreateProjectResponseDocument createProjectResponseDoc =
stub.createProject(createProjDoc);
CreateProjectResultType cpResult =
createProjectResponseDoc.getCreateProjectResponse().getReturn()
;
return cpResult;