Get only a subset of tasks, using Project Server 2007 PSI

J

Jugdish

Hi, this is a newbie question as I've just gotten started with the
Project Server 2007 PSI. I've got a project that contains about 5000
tasks, and I would like to get only a subset of those tasks. How do I
do this using the PSI? In reading through the docs, I see the
"ReadProject" and "ReadProjectEntities" methods in the Project web
service, but when I call these methods they return every single item
(a LOT of data), and there is no option to include a filter on those
methods, as far as I can tell.

What I'm really trying to do is return all of the child tasks of a
specific task (and really, all I need from them is the "TASK_NAME"
field for each). Seems like it should be doable, I just don't know
how.

Thanks for your help!
 
S

Stephen Sanderlin

One way to do what you want would be to determine the GUID of the
Summary Task and then iterate through the Tasks table, pulling out any
tasks that have a TASK_PARENT_UID matching the GUID of the summary task.

I believe you could also use the Select() method inherited from
DataTable, or LINQ, although if you use LINQ you will need to use the
AsEnumerable() method discussed here:
http://blogs.msdn.com/adonet/archiv...datasets-introduction-to-linq-to-dataset.aspx

--
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