none
Create Project with specific Enterprise Project Type (Code) RRS feed

  • Question

  • Hi All,

    Currently i am using following code to generate a project in project server 2010 with project type

    projectRow.PROJ_TYPE = (int)PSLibrary.Project.ProjectType.Project;

    How can i change this type ie used newly created Enterprise Project Type every time a project is created 

    programtically setting different type everytime depending on my condition


    Thursday, May 9, 2013 1:11 PM

Answers

  • you need projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of the EPT>.

    If I understand what you need properly, you would need some logic in your code such as:

    if( <some condition> ){

    projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of EPT1>.

    }

    else if{

    projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of EPT2>.

    }

    Is this what you need?


    120811049008

    Friday, May 10, 2013 5:11 PM

All replies

  • you need projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of the EPT>.

    If I understand what you need properly, you would need some logic in your code such as:

    if( <some condition> ){

    projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of EPT1>.

    }

    else if{

    projectRow.ENTERPRISE_PROJECT_TYPE_UID = <Guid of EPT2>.

    }

    Is this what you need?


    120811049008

    Friday, May 10, 2013 5:11 PM
  • Hi Paul MC2

    Perfectly right man!!!!

    Thanks :))))))

    Saturday, May 11, 2013 2:13 PM