E-mail Survey Answers

1079
7
06-12-2018 02:05 AM
CraigMcIntyre1
New Contributor II

Hello,

I am in the process of creating a survey that will be done by customer requesting a permit to dumb waste at their local recycling centre.

After completing all the questions, we require a copy of the customers answers to be sent to them immediately via e-mail, along with an automated 'Permit Number' (such a date&vehicle reg).

Having the e-mail contain a PDF copy of the customers answers would also be ideal - if possible! 

Does anyone have experience of how this can be done?

7 Replies
JakeSkinner
Esri Esteemed Contributor

Hey Craig,

GeoEvent would be the way to do this.  You can poll a feature service and when an update occurs, an e-mail can be sent with information from the survey/feature service. 

You could also use python, but you will need to use Windows Task Scheduler to run the script at an interval for the e-mail to be sent.  See the following document:

https://community.esri.com/docs/DOC-10163-send-email-when-a-feature-is-added-to-a-arcgis-online-host... 

0 Kudos
CraigMcIntyre1
New Contributor II

Thank for the reply Jake.

Can this method be used to send to the individual customers e-mail address after they've input it into the survey then submitted? 

Bearing in mind the customer only needs to see there responses and no one elses/no future e-mails. 

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Yes, either method can handle this as long as the customer's e-mail address is entered as an attribute.  GeoEvent would be the easiest to configure.

0 Kudos
MichaelKelly
Occasional Contributor III
CraigMcIntyre1
New Contributor II

We are looking to make this survey public and according to the article 

Survey123 webhooks will not be triggered if the form is shared publicly and the user submitting the form is not logged-in.

Think our only option would be using a geoevent

0 Kudos
SMauri
by
Occasional Contributor III

Hi Craig,

maybe also with this method: https://community.esri.com/groups/survey123/blog/2018/01/22/a-simple-e-mail-notification-system-for-... 

And obviously modified for your purpose...

Cheers

Stefano

DougBrowning
MVP Esteemed Contributor

I came up with a low tech free option using Data Driven Pages 2 years or so ago.  Still being used every day though.

See my post here for full code  https://community.esri.com/thread/170563

0 Kudos