I need to add a success message when an action is successfully completed in Application Composer.
I have a code that is triggered by an action in a standard object which sends data to a WEBSERVICE. The problem is that I need to add a SUCCESS message or something that indicates it was sent successfully. Currently, my code already has validations for this and works fine using ValidationException
for possible errors. However, if everything works correctly, it doesn’t notify anything. The current code is this:
if(newOpty != null){ if(newOpty.state == "False"){ println("Respuesta ${newOpty}") println("Mensaje: ${newOpty.mensaje}") throw new oracle.jbo.ValidationException("No se logro enviar la oportunidad a la X, por favor contactar al administrador del sistema") }else{ println("Respuesta ${newOpty}") println("Mensaje: ${newOpty.mensaje}") //SUCCESS NOTIFICATION } }else{ throw new oracle.jbo.ValidationException("Respuesta no válida | Invalid answer | Resposta inválida do serviço") }
0