Wednesday, February 8, 2012

Axosoft Ontime Getting all projects using Powershell and Axosoft Ontime SDK


clear
$securityToken="[your guid here]"

$projectUrl="http://[your url here]/ontimesdk/projectservice.asmx"

$onTimeProject = New-WebServiceProxy $projectUrl -Namespace projects

$projectHandler = New-Object projects.ProjectHandler

$dataset = $projectHandler.GetAllProjects($securityToken)

foreach ($row in $dataset.Tables[0].Rows)
{
''+$row.ProjectId + ' - ' + $row.Name
}

No comments:

Post a Comment