How use getWorkflowStaticData
Hello her, it’s my first topic ! I use this simple workflow to parse list of object and use an api to collect information about electrical consumption.
I want to keep the total consumption send by the api and to the next run of the flow (every 1 hour) i need to compare the old and new value, if the difference < 4 i need to send an email alert.
In the edit filed i keep only the necessary value
I need to store for each item the value of “total_elec” and use it one hour after the last execution of the job.
I parse the documentation and i think i can use the getWorkflowStaticData
But i don’t understand how ?
Thanks for your help.
Information on your n8n setup
- n8n version: 1.45.1
- Database SQLite
- n8n EXECUTIONS_PROCESS setting default
- Running n8n via n8n cloud and Pro plan
- Operating system: