Reading enterprise resource in ADD-in (c# or VB)

M

Mario

Hello everybody,
I am using Project Server 2007 and Project professional
created a COM Add-in using C# or VB in which it have to read all enterprise
resource (EUID, ID, name...).

Is it possible to get those values?

Using the following, I am only able to access:
Globals.ThisAddIn.Application.ActiveProject.ResourceTables - (Project
resource)
If I am using EnterpriseResourceGet method I can add enterptise resource
to Active Project - but I need to resources EUID
 
S

Stephen Sanderlin

I recommend that you use a filtered call to the ReadResources() method
in the Resources web service of the PSI to get this information. I'm not
familiar with any way to get this information out of the Project Object
Model unless the Resource is already in the project.



I believe that the EnterpriseResourceGet() method will want the integer
RES_ID from the returned ResourceDataSet, and will not accept the Guid
RES_UID.


--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 

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