Best answer

Slack search sorting by date not working

  • 28 January 2022
  • 2 replies
  • 249 views

Hello👋 

 

In the “Find Message in Slack” action, when I sort the messages in descending order by date, it returns the oldest message. This is not the intended behaviour as I want to get the latest messages.

 

I set this search query.

in:#channel_name “search term” from:me

 

It also does not work.

in:#channel_name “search term” from:me on:Today

 

In the Slack app, I can get the messages that match the query as intended.

 

How can this problem be solved?

icon

Best answer by jessyvg 28 January 2022, 12:23

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 1
Badge

Hey @Kenzo Tanaka 👋

Looking at the Slack search documentation, it’s expecting to see a date when using on:

Instead of using “Today” try


in:#channel_name “search term” from:me on:{{zap_meta_human_now}}

 

Using {{zap_meta_human_now}} will then search for slack messages sent on today’s date each time your Zap runs. 
 

If you’re looking for other ways to modify the date, you may want to check out our Formatter help article too.

Hope this helps! 😊

 

Thank you!😆

I changed the specification of the on option in the way you told me, but it still hits the oldest message in the specified range.. 🤔

So I'm wondering if the sort function isn't working correctly.