Monday, January 30, 2012

Axosoft Ontime retrieve all worklog types using PowerShell and OnTime SDK


clear
$securityToken="your guid here"

$typeUrl="http://your url here/ontimesdk/typeservice.asmx"

$onTimeTypeServer = New-WebServiceProxy $typeUrl -Namespace types

$typeHandler = New-Object types.TypeHandler

$dataset = $typeHandler.GetWorkLogTypes($securityToken)

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

No comments:

Post a Comment