markfguerra / google-forms-to-slack

Instantly posts your Google Forms responses to a Slack channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2021 update

ichallengediabetes opened this issue · comments

Thank you for creating this, I was wondering if you had a chance to update it recently?

Ive used this and it works as is. Wondering if there is a way to post on different channels based on one of the answers/column responses. Maybe with a case statement?

For example. If one of the questions says "Reporting location", and the post would go to a different channel based on that answer.

This is the error I keep getting/

8:50:42 PM Error
Exception: Unexpected error while getting the method or property forSpreadsheet on object ScriptApp.TriggerBuilder.
initialize @ Code.gs:35

Make sure @ichallengediabetes that you are doing this in the SHEET associated with the Form results, not as an App Script on the Google Form. There are new APIs that would probably allow you to use it from the Form Submit but you'd have to modify the script for those.