Can $latestHttpResponse variable be accessed in Java code?
Is it possible to access the $latestHttpResponse variable (that is available in Microflows) from Java code? When the Call REST action fails (i.e. the server returns a 500 status code) the Call REST throws an exception and the current Microflow exits. I am eventually catching this thrown exception in Java code, but I can’t figure out how to get the $latestHttpResponse with the actual response code and data from the HTTP body (content).
You can use error handling in your microflow. In the error handling flow, you can pass the $latestHttpResponse variable to your java action.