Manipulating Orchestration Output on a Form Service
JDE 9.2 Tools Release 9.2.7.3
I have a form service request and I am trying to manipulate the output to display the form error messages that have occurred and if there are no errors simply output the jde__status
I have gotten part way but I can't figure out how to handle when the json output doesn't have the "item" for errors.
I produce the output I want by adding this in the groovy code
def errorMap = jsonIn."Errors/Warnings".Errors.collect{["error code": it.CODE,"error title":it.TITLE]}
When there is a form error, the orchestration output shows this now (which is what I want)