Retrieve data from Slack attachement

#1

Hi there !

I’m using a Saas app which is integrated with Slack, and sends messages to Slack using Advanced message formatting.

I would like to retrieve the json data from these messages, in order to re-use some of these datas in flows.
Does anybody know how to create a Flow step to get the “raw” json code from these Slack advanced messages?

thank you in advance! regards

(Daniel Beckett) #2

Hi,

I’m not entirely familiar with Slack’s advanced message formatting but I’ve taken a quick look at the documentation and from what I can see it doesn’t look like there’s a way to capture the raw JSON that’s being sent through to Slack.

The only workaround that I can think of would be to have one of our bots listening out on the channel for a trigger word (or a catch-all) so that it can start capturing the messages being sent in via. the advanced messaging. Whilst this wouldn’t be a copy of the JSON it would allow you to save any messages so that you can use them in your other flows.

#3

yes exactly, but how can i then get the slack message attachment (which is basically a piece of json code) into json in slack ?

thank you