React on failed Send Email Action - error handling
I am using a "Send Email Action" which uses mail adresses of multiple users. Some of the users are not in the company any more. The newform display a error message to the user like: "Failed to execute action "<action name>": error Die E-Mail-Nachricht kann nicht gesendet werden. Stellen Sie sicher, dass die E-Mail-Nachricht einen gültigen Empfänger aufweist." Can I suppress this user output or catch errors of the Send Email Action?
0
-
Hello Tomislav,
i did have the same problem and my solution is to check the Email in a foreach:
var mailAddresses = []
[[EMailField]].forEach(function (e){
if(e.Email !== ''){
mailAddresses.push(e.Email);
}
});
return mailAddresses.join(';');Don't forget to change the expression type to "function code".
0
Please sign in to leave a comment.
Comments
1 comment