How to retrieve the resources RBS fields through the PSI

Y

YonZo

Hi!

I'm developing an integration between Active Directory and Project Server
2007.
The integration is supposed to update the resources RBS-values based on some
value in AD. This will

happen when the resources are created during synchronization.

Anyways, the eventhandler is up and running and I've just started developing
the logic for retrieving

the resource-information. My problem is that I can't seem to find the
RBS-property for the created

resource!

All other properties are present in the dataset
(e.ResourceInformation.Resources[0].<propertyname>).
Could anyone please give me a pointer on where to find a resource's
RBS-value??

Regards,
Jon
 
Y

YonZo

Come to think of it, it's more important to me to learn how to update the
RBS-value for the resource. If you know how to do this, please provide this
information as well...

Regards,
Jon
 
C

Chris Boyd

Hey,

The RBS is a custom field. So to update a resource's RBS, you are going to
use the Resource PSI and the resource custom field data table from the
resource dataset. You my also need to go to the Custom Field PSI to get the
GUID for the RBS customfield.

Take a look at my CustomFieldCRUD code sample on how to update custom field:

http://blogs.msdn.com/project_progr...28/custom-field-and-lookup-table-webcast.aspx

--
Chris Boyd
MS Project
Program Manager

Blog: http://blogs.msdn.com/project_programmability/
 
Y

YonZo

Hi Cris and thanx a lot for the information!

I had a suspicion this was where the RBS was supposed to be, but when
retrieving a resource and investigating the related customfields-table, no
values are displayed!

I'm using the exact same code as in the example for the
Resource.ReadResource -method in the SDK.
The customfields-tablecolumns is written to the console window, but no
customfields are displayed!

Do you have any idea why this might be, or where I should start looking??
Could this have anything to do with SP1 not being installed on the server??

Regards,
Jon
 
Y

YonZo

After further investigation, it seems that the method
ReadResources(xmlFilter, autoCheckOut) doesn't populate the
CustomFields-table, whereas the specific ReadResource(resourceUid) -method
does!

It sort of makes sense to me now, but it was not trivial to find out from
the SDK...

Regards,
Jon
 

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