Better way to handle id storage on N8N workflow

Hi Samuel,
using $getWorkflowStaticData('global') sounds like a good alternative for your szenario. Keep in mind that static data is only available when running active workflows, not with manual executions (which makes it a bit harder to test).

If you are self-hosting n8n you could also read/write your historyId to the filesystem.

1 Like