Skip to main content

I have a workflow which sends a Slack user a DM using Slackbot. The idea is the user then replies in that thread with an image which is then sent to another tool I’m using. I can find the Slack user, send them a DM, but when trying to retrieve that message or the messages in the thread I run into a dead end:

  • Retrieve Thread Messages: Sends data to Slack, gets no response
  • Get Message: Sends data to Slack, gets an error: 

    Failed to find a message in Slack

    This is a new feature! To take advantage of it, you'll need to reconnect your auth. Requires scope `im:history`

  • Get Message: Sends data to Slack, returns missing_scope error

 

The workflow
Using channel and timestamp from step 4

I have reconnected and reauthenticated my slack connection, with no change.

Hi ​@cakesandale 

Try using a new/different private browser to connect your Slack account or another instances of your Slack app account connection to Zapier: 

 


Hi Troy, I get the same error when creating a second connection to Slack. The authentication works as I am able to find users and send messages - but I cannot search for messages. Suggests it’s a permissions issue not an auth one - does Zapier ask for the im:history permission?


@cakesandale 

Help links for using Slack in Zaps: https://zapier.com/apps/slack/integrations#help

 

Prerequisites

To use the Slack app on Zapier, you must have:


Hey ​@cakesandale,

The error indicates your Slack bot doesn’t have im:history which is required to access a user's direct message history to function correctly. Can you try give your Slack bot this scope to see if it fixes it? Hope it helps!