Product Feature: Workflow
Issue
Automate BPA - cannot find return-code from the process agent that can be used within the workflow
Cause
Return code is not readily available.
Resolution
UPDATED: October 9, 2017The following fields are populated when a command is executed at the process agent:
So the result will look like:
A result code of 1 means successful and 2 means failure. This can be used as a return code.
%AMProcess.AgentID%
%AMProcess.AgentName%
%AMProcess.CommandLine%
%AMProcess.ID%
%AMProcess.Output%
%AMProcess.Name%
%AMProcess.Result%
%AMProcess.AgentName%
%AMProcess.CommandLine%
%AMProcess.ID%
%AMProcess.Output%
%AMProcess.Name%
%AMProcess.Result%
So the result will look like:
b2b4417c-c847-4b76-89f1-ef0702e900de
bpa9
notepad.exe
{70375534-db3f-4d04-a36e-4dff65d41c9b}
True
notepad
1
bpa9
notepad.exe
{70375534-db3f-4d04-a36e-4dff65d41c9b}
True
notepad
1
A result code of 1 means successful and 2 means failure. This can be used as a return code.