locked
Assign Resource over PSI RRS feed

  • Question

  • Hi,

    I have succesfully created an assignment with the "CreateNewAssignment" Method. But the assigned resource was the creator. How can I assign an other resource to the assignment over the PSI?

    Thanks in advance.

    Tuesday, May 8, 2012 11:50 AM

All replies

  • Hi there--

    If I understand correctly, You want to  "assign an other resource to the assignment using PSI"

    Please refer to article of PSI limitations:
    http://msdn.microsoft.com/en-us/library/ee767706.aspx

    What the PSI Does Not Do

    *Changing the resource on an assignment. However, you can use the PSI to delete the assignment and create a new one.


    Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    • Proposed as answer by PWMatherMVP Tuesday, May 8, 2012 1:54 PM
    Tuesday, May 8, 2012 12:38 PM
  • Basically you have to work with the Project Dataset and methods such as QueueUpdateProject - but it involves also CheckOut, CheckIn and eventually publishing. If the resource is already part of your team you basically add a new row in the Assignments-table of the dataset. Basically you add a new row in the Assignmentstable. If the resource is not part of the team yet, you need to add him/her first using QueueUpdateProjectTeam. In de SDK you will find examples on how the overall scenario is to be handled. Usign CreateNewAssignment the resource must be already part of the team - and only the resource that is invoking the call will be added (if he/she has enough privileges). CreateNewAssignment works through statussing PSI (and is equivalent to the functionality you find in My Tasks) - the other route is the one of the project manager through the project PSI web services.


    Jan Cirpka

    Wednesday, May 9, 2012 8:22 AM