Saturday, January 28, 2012

Axosoft OnTime Retrieve all customer contacts in the system using PowerShell and OnTime SDK


clear

$securityToken="your guid here"

$customerUrl="http://your url here/ontimesdk/customerservice.asmx"

$onTimeCustomer = New-WebServiceProxy $customerUrl -Namespace customers

$customerHandler = New-Object customers.CustomerHandler

$dataset = $customerHandler.GetAllCustomerContacts($securityToken)

foreach ($row in $dataset.Tables[0].Rows)
{
foreach ($field in $row)
{
$field
}
}

No comments:

Post a Comment