Describe the problem
I’m trying to get certain messages from a channel. The way I had it configured with HTTP node was by making a request to this URL:
https://slack.com/api/conversations.history?channel={{ $(‘get_all_messages_for_feedback’).item?.json?.channel }}&latest={{ $(‘get_all_messages_for_feedback’).item?.json?.ts }}&inclusive=true&limit=1
and setting batch to 1 item at a time. My ts in this case was 1763741692.993999
Then I decided to move all my HTTP nodes that interact with Slack to intended Slack nodes, and for this purpose I created a node, where I used Channes > History > By ID to replicate the functionality, but got a problem with configuring the Latest parameter.
I added the Latest field and tried passing the same value I passed to the previous request, but got an error.
As I later found out, in this node the Latest and Oldest fields accept values as date objects, but I would really like to use the same timestamp format I used in my HTTP request.
Is there a way to allow this?
What is the error message?
Slack error response: "invalid_ts_latest"
Please share your workflow
Share the output returned by the last node
get_all_messages_for_feedback output:
[
{
"ts": "1763741692.993999",
"channel": "D09TBPS2ZJ4"
}
]
Information on your n8n setup
- n8n version: 2.0.2
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker