I need to add a success message when an action is successfully completed in Application Composer. — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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")
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!