Sunday, January 29, 2012

Axosoft OnTime retrieve all workflow statuses for a single workflow using PowerShell and OnTime SDK


clear

$securityToken="your guid here"
$workflowId=1

$workflowUrl="http://your url here/ontimesdk/workflowservice.asmx"

$onTimeWorkflow = New-WebServiceProxy $workflowUrl -Namespace workflows

$workflowHandler = New-Object workflows.WorkflowHandler

$dataset = $workflowHandler.GetStepsByWorkflowId($securityToken,$workflowId)

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

No comments:

Post a Comment