Skip to content

Survey into a spreadsheet

You want survey answers where your team already works: in a spreadsheet they can sort, chart and share. One step does it. Doxtly adds a row for each response, and creates the file the first time if it isn’t there yet.

Available when: an active cloud storage integration, such as Google Drive

Canvas with a Survey trigger on A survey response is submitted, a Write to a sheet step titled Append a row, a Condition and a Send email step on its True branch

A survey, here “Client satisfaction”, with a required satisfaction question from 1 to 5 whose Answer key in the data is rating, and a text question with the key comments. Who responded comes from the survey’s access list, or from a question that asks for it, as {{ _response.personEmail }}. The spreadsheet can wait: the step makes it.

  1. Create a workflow. Click the trigger, set Starts on to Survey and When to A survey response is submitted, and choose “Client satisfaction” under Survey.

  2. Drop Write to a sheet and connect it.

  3. On the File tab, set Write to to Cloud file, choose the Storage, and enter the File path Surveys/answers.xlsx.

  4. On the Columns tab, keep Rows to write on One row. Open Fill in and choose All survey answers. Each answer becomes a column with its value. Rename the columns if you like.

  5. Add columns of your own: Email with the value {{ _response.personEmail }}, and Received with {{ _response.submittedAt }}.

  6. On the Search tab, keep No – always add a new row.

  7. Save and switch it on.

Columns tab of Write to a sheet with the Fill in menu open on All survey answers and rows for Rating, Comments, Email and Received

The Advanced tab already has what you need. Create the file if it is missing is on, so the first response creates the file with these columns. On Google Drive it becomes a Google Sheet, unless you change Create as to File in the path’s format, which makes the .xlsx file the path names. Add missing columns is on as well, so a column you add to the step later appears at the end of the header.

A ticked list of options goes into one cell, separated by commas. A number stays a number when the value is one variable and nothing else, such as {{ rating }}, so your charts work.

  1. After Write to a sheet, add a Condition with the expression rating <= 2. Keep the rating question required: a condition about a value the run doesn’t have stops the step with an error.

  2. From True, add Send email to your account manager, with a template that shows the rating and comments. Set Reply-to address to {{ _response.personEmail }}, so they can answer the client directly. An anonymous survey knows no address, and the email goes out with none.

  3. Leave False unconnected. The run just ends there.

The Write to a sheet card says Appended: 1, and File created on the first response.

  • One row per client. On Search, choose Yes – by a key column and pick Email under Key columns. Set If the row exists to Update it and If there is no such row to Add a new row. A second answer replaces the first.
  • A tab per month. Set Sheet to Answers {{ _execution.date | first(7) }}. A missing tab is created when the step adds a row.
  • A row per question. Set Rows to write to A row for each list item, pick _answers, and use {{ item.label }} and {{ item.answer }} in the column values, with {{ _response.number }} to tell the responses apart.