PSI, get project task by task GUID

R

Roy G

Is there a way to get a specific task data by task GUID using PSI? The PSI
function ReadProject(..) returns all project tasks, and is not efficient if I
want to get only one specific project task.
Thanks.
Roy G.
 
R

Roy G

Thanks for your reply,
So basically there is no way to retrieve a single Task information other
than reading it from the DB (which is not recommended)?
Is there no way to use a filtered PSI so that not all of the Project's tasks
will be retrieved?
Thanks in advance
 
J

Jim Corbin [MSFT]

The only PSI methods that use a filter for reading data are:
ReadResources
ReadResourcePlan
ReadCustomFields
ReadLookupTables
ReadLookupTablesMultiLang
ReadResourceAssignments

ReadProjectEntities is quite performant.
 
D

David

I have a problem about the guid. In object module, the unique id for task,
resource and assignment is long data type but I can not find it from psi
dataset which only carry guid. Could you please let me know if there is a
way to get same unique id in psi which is same as the one in object module.
 
R

Roy G

Hi David,
The Unique Id is indeed of tyoe Long but the objects you mentioned (or at
least Task, which I use) also have a property (field) called Guid of type
string. Let me know if this helps
Roy
 
D

David

Hi Roy,
We can get unique id (long data type) and GUID (string data type) from
Object module but the PSI dataset only carry GUID for task, resource and
assignment as I see. There might be a way to get both from PSI but I don't
know if I have to use GUID which might cause my problem because I am only
using unique id in Object module which I want it be used in PSI also.
Thanks.
 

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