Skip to main content

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?

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.