Skip to main content

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

This thread might be helpful:

 


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! 🙂