Any example using n8n node update workflow action to update a node?

Hello

I have a simple workflow. I would like to update the Set Node ‘previous_cursor’ field after the workflow is completed. (the new cursor will be returned by the “Get Latest file Step” But I cannot figure out how can we do it with n8n node update workflow action. Or is there a better way to do?

Thanks


It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @Blueli

Are you trying to update the same workflow?

And what is your use case? Why do you need to update the cursor?

HI
This is a Dropbox workflow to get the latest files. Every time the “Get File Continue” API runs, we need to store the latest returned cursor for the next run. I am considering storing this cursor directly within the n8n workflow instead of using an external solution like Google Sheets. If I am not able to work it out.

My example flow

  1. Schedule trigger every 30s
  2. Set Node (Contains previous run returned cursor)
  3. Get the latest files and latest cursor with Step 2 previous cursor
  4. Do Something
  5. Update Step 2 Set Node cursor field with Step 3 returned latest cursor.

Thanks

You can save the last cursor in the local file or within the static data. That will be simpler that updating the whole workflow

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.