none
project server 2010: project professional new field access throught PSI RRS feed

  • Question

  • Hi,

    I have a project on microsoft project professional. This project contains two new columns that were created by simply clicking on the "Add new column" column at the end of the grid in the Gantt View. These column were given names and filled with values. Now I need to access these columns using the PSI. Is this possible? and how?

    Thanks,
    George

    Thursday, February 3, 2011 1:02 PM

Answers

  • You need to use  Project.ReadProjectEntities method to get the desired custom task field values,
    on a side note, i know fetching from SDK at times gets difficult but believe me it has more than enough samples as well :)

    Again despite of your ask, i am giving you a link but if you scroll down, it has the desired example, reason for pointing out link is it has the explanation as well, where as i amy just post the code but might not be explaining everything here :)

    Hope you don't mind and this helps, let me know if you want specific code, i will post it :)

    http://msdn.microsoft.com/en-us/library/websvcproject.project.readprojectentities.aspx

     


    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com
    Thursday, February 3, 2011 2:26 PM
    Moderator

All replies

  • By simply clicking add new you create local custom fields, and you can't access MSP local custom field values using PSI, however if you Push (add) those custom field to enterprise, it will be available at server end which you can have access using either PSI or Reporting DB

    Hope this helps 


    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com
    Thursday, February 3, 2011 1:52 PM
    Moderator
  • Hi Sunil,

    Yes this was very helpful. Thanks. So now I created the new fields as enterprise custom fields (as task fields) but I still can't figure out how to access them using the PSI. Can you please give me an example or the exact function to access these fields? I know they are available in the SDK and online but there are a lot of custom field methods and functions and I've tried several of them but none returns the values in the custom fields.. I may be doing something wrong. Any help regarding this matter is appreciated.

    Regards,
    George

    Thursday, February 3, 2011 1:59 PM
  • You need to use  Project.ReadProjectEntities method to get the desired custom task field values,
    on a side note, i know fetching from SDK at times gets difficult but believe me it has more than enough samples as well :)

    Again despite of your ask, i am giving you a link but if you scroll down, it has the desired example, reason for pointing out link is it has the explanation as well, where as i amy just post the code but might not be explaining everything here :)

    Hope you don't mind and this helps, let me know if you want specific code, i will post it :)

    http://msdn.microsoft.com/en-us/library/websvcproject.project.readprojectentities.aspx

     


    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com
    Thursday, February 3, 2011 2:26 PM
    Moderator