How to pass the variable data for metabse question in n8n

I am using the Metabase node in n8n. I want to pass some variable data. How to pass it.

I tried using an HTTP node.

First for authentication, then called the API/card API to fetch data.

to pass variable data I was using the urllib library of Python to create parameters and passed in the body but am still getting bank_reference_number is missing.

In your HTTP Request node in n8n:

  • Method: POST
  • URL: https://your-metabase-url/api/card/:id/query (replace :id with your card ID)
  • Authentication: use the session token you got earlier
  • Body Content Type: JSON
  • Body Parameters:

json

CopyEdit

{
  "parameters": [
    {
      "type": "category",
      "value": "1234567890", 
      "target": ["variable", ["template-tag", "bank_reference_number"]]
    }
  ]
}
1 Like

thanku @zynate. I can move ahead with this blockers.

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