I need to check the operation status of workflow runs using Powershell. I can use Get-QARSWorkflowInstance
to determine the overall run operation status for instance:
$Ops = Get-QARSWorkflowInstance -CretatedOn Today -Workflow $wfDn
$Ops.Operation
The above will list all the workflow runs and their operation status (Completed/Failed/Running) but if it failed I need to know the reason why like it shows in the console
Also tried using Get-QARSOperation -OperationID $Ops.ID
but again it shows the Status but no reason if it failed