Help Needed Using PDS <ProjectAssignmentsCreate>

D

dcasp3r

I'm not having much luck getting the PDS ProjectAssignmentsCreate method to
create assignments.

Here is my usage: (Note that I've been trying both ResourceUID and
ResourceID, one complains about not finding the resource while the other
happily finds the *wrong* resource!)

<Request><ProjectAssignmentsCreate><AutoPublish>1</AutoPublish><ProjectID>4</ProjectID><Assignments><Assignment><TaskID>79</TaskID><ResourceID>1</ResourceID></Assignment></Assignments></ProjectAssignmentsCreate></Request>

Note: I've tried getting my resource ID from both from calling
<ResourceStatus> and also I've tried via GetAllUserCollectionFromWeb (I've
even tried manually setting the ResourceID to that which I can clearly see
fromthe Resources page on Project Server Web Access)

Nothing seems to work.

What "resource ID" should I use when calling ProjectAssignmentsCreate and
where can I get this ID from?

Thanks,
David

Ps My wishlist would include there being some ID consistency (resource,
object, etc.) across the entire EPM solution!
 
P

[PC]

ResourceID in ProjectAssignmentsCreate call represents Project Local Resource
ID.

You will need to check if the resource is already added to the Project first
to use ResourceID. You can use ProjectData call to find if resource exists in
the project.
If not, use ProjectResourcesCreate call to add the resource to the Project
first, again use ProjectData to find resource's local ID, and
use it in the ProjectAssignmentsCreate call.
 

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

Similar Threads


Top