How do I use PSI to "set the work distribution on the assignments"

S

Segrest

Hello Everyone,

The Project Server 2007 SDK states:

"When adding a resource to a task, the PSI does not automatically
redistribute work the way Project Professional does. It is up to the
developer to choose and explicitly set the work distribution on the
assignments."

I am writing an application in C# that will use the PSI to automatically
create assignments. The projects and tasks already exist.

At this point I have successfully add an existing enterprise resource to the
project and assigned them to a task.

What I am trying to figure out now is the "set the work distribution on the
assignments" part.

For example, the task may be scheduled to start on Monday, but I need to
assign the resource for four hours of work on Wednesday.

I have discovered that when I set the new assignment start date value to
Wednesday, this is ignored when the QueueAddToProject method is executed.
When I read my project dataset I find that the assignment start date has been
changed to match the task start date (Monday in my example).

So, the 64 dollar question is: How do I use PSI to "set the work
distribution on the assignments"?

Any pointers would be greatly appreciated.

Bob
 
S

Segrest

Hello Everyone,

As part of my continued research on this topic I went back and reviewed some
of the video recordings from the 2006 Project Server Conference. I got a
couple of hints and have discovered that once I figure out how to configure
the assignment, it can be approved and updated using the Statusing Web
Service. There is a good example of this in the UpdateStatusApprovals method.

The only reason that I am using the QueueAddToProject method in the Project
Web Service, rather than the CreateNewAssignment method in the Statusing Web
Service, to create my assignment is that the Statusing method does not
apparently allow me to specify the resource I want to assign. Apparently the
method is designed to assign whatever resource the application is running
under.

Does this mean that we have to programmatically impersonate a resource to
assign them to a task?

Bob
 
G

Guest

The short answer is Yes....

You need to impersonate and use the CreateNewAssignment method in the Statusing
Web Service.

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top