Published 2 days ago
This workflow demonstrates how to use the workflowStaticData()
function to set any type of variable that will persist within workflow executions.
https://docs.n8n.io/code/cookbook/builtin/get-workflow-static-data/
This can be useful for example when working with access tokens that expire after a certain time period. Using staticData
we can keep a record of that access token and the expiry time and build our workflow logic around it.
Static Data only persists across production executions, i.e. triggered by Webhooks or Schedule Triggers (not manual executions!)
For this the workflow will have to be activated.
If you found this useful or want to report some missing information - I'd be happy to hear from you at [email protected]
Implement complex processes faster with n8n