none
ReadProject doesn't give custom fields. RRS feed

  • Question

  • Hi

    My PowerShell code is as follows:

    ---------

    $svcProjectUrl=$applicationUrl+"/_vti_bin/PSI/Project.asmx?wsdl"

    $svcProjectProxy=New-WebServiceProxy-uri$svcProjectUrl-useDefaultCredential

    $svcProjectProxy.UseDefaultCredentials =$true

    $projects=$svcProjectProxy.ReadProjectList().Project

    foreach($projectin  $projects)

    {

       $tasks=$svcProjectProxy.ReadProject($project.Proj_UID,1).Task

    }

    ---------------

    I'm trying to get to the cost fields in my tasks. $tasks now does contain all the tasks and all the fields except for the custom fields. They are not included.

    Any idea how to get to my custom fields?

    Friday, May 24, 2013 10:17 AM

Answers

  • I found the location for the custom field values. The following command returns all  the custom fields.

    $svcProjectProxy.ReadProject($project.PROJ_UID,1).TaskCustomFields

    Friday, May 24, 2013 11:26 AM

All replies