I discovered a handy workflow for calling and passing arguments to Python scripts using Survey123’s webhook capability, Integromat, and Google Cloud Functions. The possibilities are endless, but some use cases include:
In this example, I’ve made a simple web form and Python script that checks an ArcGIS Online org for new items and sends a raw list object of these items via email.
Step 1: Create a Google Cloud Function to run your script
Step 2: Create and publish Survey123
Now, let’s create a form to call the Python script.
Step 3: Set up a scenario in Integromat and connect a webhook to your Survey123 form
You’ll need to set up two modules in Integromat: The Survey123 module to watch for a new survey submission, and the HTTP module to make a request that calls the script on Google Cloud Functions and passes arguments to it.
Step 4: Call your script with the survey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.