I have scenario, where i need to fetch data from a system based on the last run timestamp.
Is there a way with in n8n, i can save the value and fetch it in my next execution?
Hey @prasad hope all is good.
- How do you run n8n? In Docker, via npm or in the cloud?
- How is the system you are referring to related to n8т?
For instance, if your n8n is running in the docker, you could say - the system, which I need to interface with is a host machine, where docker is running. Or “a system” is what you call n8n iteself?
We are running the n8n in cloud
The system i am connecting with API.
Ok, so trying to understand the question… you want to pass the datetime of the last time n8n accessed that system? Basically, every time you send the request, you want to include the last time you sent the same request?
Yes, That’s correct..
You will need a way of storing an retrieving this information.
-
You could use static data:
getWorkflowStaticData | n8n Docs -
You could use a database for that:
PostgreSQL/MySQL/Redis/Sheets/Airtable/etc
Is this current execution specific or this data can be shared to next execution as well??
I assume the question is regarding static data. Yes! It most certainly can be used between executions!
(just make sure you are using it in production mode per documentation)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.