When using Slack, how can I print all of the messages that were said in a channel for my records?
-
2I guess this is a way of doing levels.io/slack-export-to-html– Sathyajith BhatCommented Apr 13, 2016 at 11:05
-
1It looks like it would but I had problems running it. I was in a hurry so I just did it manually. Revelant xkcd: xkcd.com/1205– Eric JohnsonCommented Aug 16, 2017 at 0:17
2 Answers
In order to store and print messages from a channel you use the export feature in the client or develop a script that uses the web API.
The export feature works fine, however there are a few constrains:
- can only be done by admins or owners
- only works for public channels
- the format is JSON (one file per channel, each message is one element in a JSON array)
See here for further information on the Slack help pages.
I also found a Slack App called Export that allows to export the full content of a channel for storage and later printing. This app supports exporting for any channel the user as access to including private channels. Messages can e.g. be exported in HTML for printing with the browser. The app works fine, but the output quality is a bit rough and seams to lack images and conversation of Slack link syntax to HTML.
Another approach is to develop your own script. You only need to read all messages of a channel directly via web API (with conversations.history
]3) and then process it further (e.g. convert to output file for printing). That will work for both public and private channels, but obviously requires a bit of coding.
-
2Looking on the 3K views there seams to be a lot of interest for such a feature. So it might be worthwhile creating a Slack app for it..... Commented Jan 17, 2018 at 21:26
Well, maybe late, recently i have write a chrome extension "slack printer" to export the slack messages into html, also support pdf/png/json, event markdown. Try it in https://chrome.google.com/webstore/detail/slack-printer/pmoidapkjjlhcdbdjojaekbdlkdjjoab using this tools, no need as admin role, hopefully it can make your life easier.