Access Switchscripter error in mail body (next module)
Posted: Tue Jul 07, 2020 9:17 am
I have a switchscripter with a trafic light. If the scripts fails (error) the xml goes to the next model, mail send and this is working.
In my switchscripter code I have this loggin and I get the errors fine in the log.
job.fail( "Process shipment marking failed with the status code %1", theHTTP.statusCode );
job.fail("invalid response: %1", theHTTP.lastError);
job.log( 1, "Server response: %1", theHTTP.getServerResponse().toString( "UTF-8" ) );
But I want to access this errors in my nextmodule, the mail send email body. How can I do that?
theHTTP is not accessible from the email body so I can't use something like
[job.theHTTP.lastError]
In my switchscripter code I have this loggin and I get the errors fine in the log.
job.fail( "Process shipment marking failed with the status code %1", theHTTP.statusCode );
job.fail("invalid response: %1", theHTTP.lastError);
job.log( 1, "Server response: %1", theHTTP.getServerResponse().toString( "UTF-8" ) );
But I want to access this errors in my nextmodule, the mail send email body. How can I do that?
theHTTP is not accessible from the email body so I can't use something like
[job.theHTTP.lastError]