Hi Team, We are calling a identityIQ workflow from REST API call below and in response we are getting a default response as below. my question is how to add error message or identity request ID to API response. thanks in advance any guidance in this regards would be greatly appreciated.
You can include additional details like the Identity Request ID or custom error messages in the REST API response by setting them in the workflow’s context attributes.
Just add a script step in your workflow that looks like this:
@kanwantm did you declared the variable as output=“true” ? that will solve ur problem. also
in case of error or validation just set like below.
wfcontext.getWorkflowCase().addMessage(new Message(Message.Type.Error, "Error message", null));
this will directly return as output. you don't need to do any calculation in steps.