Skip to main content
Question

Find latest Comment on a Slack message in a specific channel


How to retrieve the latest comment on a Slack message in a specific channel ? As trigger I use a reaction added to the comment.

Thanks for your help

Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+3

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • February 3, 2025

Hi there, ​@CosmeNeyrand! 👋

Have you already tried the approach mentioned in the Community thread that pranayshinde shared? If not, there’s now a Retrieve Thread Messages action available for Slack that can pull all the messages for a Slack thread:

33f75b56f20d2fc28d60404da9ae6213.png
So you could use that to get all the messages in the thread and then pass them to a Formatter (Utilities > Line-item to Text) action to extract the last message. For example:

f81c686025d045cc4e7746549f1c3a96.png
There’s a field called Output Item Last that will contain the last message that was output by the Retrieve Thread Messages action:

f5caab0f0349d2ec2f5e6db440fb7060.png
 

Hope that helps. If you run into any issues on that or find another way to solve this, please let us know—we’d love to hear from you! 🙂