How i can attach two spreadsheet to one email

Hey @zied_hamzaoui,

You will have to use the Merge node and connect the two separate Spreadsheet files node to it.

Which setting should be used on the merge node, @harshil1712?

1 Like

Hey @zied_hamzaoui,

Did you get it working? I am sharing a sample workflow that might help:

{
  "nodes": [
    {
      "parameters": {
        "operation": "toFile",
        "options": {}
      },
      "name": "Spreadsheet File",
      "type": "n8n-nodes-base.spreadsheetFile",
      "typeVersion": 1,
      "position": [
        590,
        250
      ]
    },
    {
      "parameters": {
        "operation": "toFile",
        "binaryPropertyName": "data1",
        "options": {}
      },
      "name": "Spreadsheet File1",
      "type": "n8n-nodes-base.spreadsheetFile",
      "typeVersion": 1,
      "position": [
        590,
        450
      ]
    },
    {
      "parameters": {
        "mode": "mergeByIndex"
      },
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 1,
      "position": [
        850,
        340
      ]
    }
  ],
  "connections": {
    "Spreadsheet File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Spreadsheet File1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}

Note, that the value in the Binary Property field should be different in both the Spreadsheet File node.