Using Previous Node Data in Generic Credentials

Describe the problem/error/question

I’m creating a cookie using an endpoint and want to use that value in a Header Auth - Generic Credential Type.

I need to keep using this custom Generic Credential, which has a cookie generated dynamically from the previous step, for a complete execution and task as I invalidate this cookie at the end of the workflow.

How can I put a value from a previous step into a generic credential?

Please share your workflow

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:
  • n8n version: 1.37.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Debian

Nevermind, I realised I could call previous node using {{ $json.data }} as the expression in the credential’s Value field

3 Likes

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