After Split In Batches, use the RSS Feed Read and a new code.
const staticData = this.getWorkflowStaticData('global');
latestRead = staticData.latestRead;
for (let item of items) {
item.json.latestRead = latestRead || '2021-06-01';
}
return items;
In IF, I use some codes.
Look at my flow:
Even performing the filters, I still receive duplicate feed in Telegram.
On the first attempt, it only brought me single data points.
I think the problem is when it runs and finds the same url.
When it doesn’t find new items, it forwards the same feed that has already been forwarded.
I’m using N8N with the latest version 1.9.3
Database (default: SQLite):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Follow all the configurations following these steps using docker Docker | n8n Docs
Operating system:
Ubuntu - on a vps instance Hetzner.
But I don’t think the problem lies with the installation.
Everything works fine, I use several other workflows.
Do a test using telegram. It forwards without duplication, but if it doesn’t find any new feeds, it will return the same feed that has already been forwarded.
Hi @denverfix Thanks for confirming your version number, etc. - it’s helpful with testing!
It looks like you’re not updating your latestRead - you’re getting the value of it, but it’s static. If you set staticData.latestRead to whichever date and time you wanted, you should see different behaviour
We have a workflow example here:
In this workflow, it uses the following to ensure that latestRead is updated: