Sending email from a Form Based App
Is it possible to send email notifications from a Form Based App? For example, a user updates data in an eForm in a Form Based App, and then based on the value they set in a Status field, it would send an email notification when the user clicks Submit.
Thanks! :)
Laura Wade
-
Hi Laura,
You could use autolookup that will be triggered before submit. In this lookup you can make a webservice call to agilepoint to send an email. See documentation there: https://documentation.agilepoint.com/11/developer/restmethodSendMail.html
Regards
Alexey -
Hi Alexey,
Thank you for the response! Unfortunately, my JavaScript and HTML skills are pretty poor. I was hoping for a low-code solution. I've tried the example in the documentation and I get a 401 unauthorized error, and I'm not sure how to send an authorization header. I'm also not sure how to use form field values and variables to string together the request properties. So, I don't think this is going to work for what I need.
Thanks! :)
Laura -
Laura, do you need it before the user click Submit, or is after they Submit ok? If after is ok, then you can do what I have in the image. Put a condition after your form. In the condition, set up if Status = send email status. Then if it does set the email up next. If not, send it to the end (or whatever the next stage in your process is).
-
Hi Laura,
There is no need of writing html or javascript for the call. This is a no code solution. The authorization header you will set up when you configure the lookup inside the autolookup. Don't do it with code as in an exmaple. Use autolookup and webservice (rest) call and follow the configuration in the documentation: https://documentation.agilepoint.com/00/appbuilder/cloudformLookupDetailsRestServiceConfigWin.html
Regards,
Alexey
Please sign in to leave a comment.
Comments
6 comments