Randy424/slack-app-script-integration

Repository for slack integration code

★ 0Forks 0JavaScriptGitHub ↗Compare

README

slack-app-script-integration

Slack integration script for Google sheets/docs

Prerequisites

Node/NPM

  • node -v

Clasp

Using Clasp

  • Login into your google account
    • clasp login
    • Will direct you to auth via your web browser
  • Pull down the live project
    • clasp pull [project -id]
  • Push up changes
    • clasp push
    • May require enabling clasp API for your google account via web browser, in this case you'll be directed to a browser automatically.

Overview

The integration

  • The current integration was designed to pull input from a google spreadsheet, in the form of a table, via the google spreadsheet API. Once consumed, the spreadsheet data is reorganized into a list of slack block objects and submitted to the slack webhook we have created for the workspace.

  • Google App Scripts also provides time sensitive triggers for srcipt execution. We have one such trigger pointed at our "buildReport" function. The trigger executes every day between 7am and 8am EST. These triggers can be further customized to execute at different time intervals and upon successful edit of the active spreadsheet.

For spreadsheet users

Contributors

Randy424

Issues