AutomationFlowsGeneral › Move Binary Data:tojson:tobinary

Move Binary Data:tojson:tobinary

Move Binary Data:toJSON:toBinary. Uses start, moveBinaryData, functionItem. Manual trigger; 5 nodes.

Manual trigger★★★★☆ complexity5 nodesStartMove Binary DataFunction Item
General Trigger: Manual Nodes: 5 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "createdAt": "2021-03-03T13:27:06.481Z",
  "updatedAt": "2021-03-03T13:32:50.258Z",
  "id": "93",
  "name": "Move Binary Data:toJSON:toBinary",
  "active": false,
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "490486f2-7ea9-410e-9281-84cd27836115"
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "options": {}
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        600,
        300
      ],
      "id": "9ddb3642-7086-4f67-8b20-9255bc2b99cc"
    },
    {
      "parameters": {
        "functionCode": "item = {\n  name:'test',\n  indexes:[1,2,3],\n  subobj:{\n    name:'subtest'\n  }\n};\nreturn item;"
      },
      "name": "FunctionItem",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "notesInFlow": true,
      "notes": "Set json data",
      "id": "8c99a563-2438-4822-b35d-3016c7524c50"
    },
    {
      "parameters": {
        "options": {}
      },
      "name": "Move Binary Data1",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        750,
        300
      ],
      "id": "43d6faba-afc5-45bd-b477-a28054b75ddf"
    },
    {
      "parameters": {
        "functionCode": "if(JSON.stringify($node['FunctionItem'].json)!==JSON.stringify($node['Move Binary Data1'].json)){\n  throw new Error('Problem in move binary node');\n}\n\nreturn items;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "notesInFlow": true,
      "notes": "Evaluate the conversion result",
      "id": "e4fbc1b7-b88e-49c3-bb0c-9dda8a447617"
    }
  ],
  "connections": {
    "Move Binary Data": {
      "main": [
        [
          {
            "node": "Move Binary Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FunctionItem": {
      "main": [
        [
          {
            "node": "Move Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move Binary Data1": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "FunctionItem",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "staticData": null,
  "meta": null,
  "versionId": null,
  "triggerCount": 0,
  "tags": []
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Move Binary Data:toJSON:toBinary. Uses start, moveBinaryData, functionItem. Manual trigger; 5 nodes.

Source: https://github.com/n8n-io/test-workflows/blob/c1d376431a818f81f44e9ce645b8fb4878805419/workflows/93.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Transporeon - orders - step 3 - process single. Uses start, functionItem, httpRequest, microsoftSql. Manual trigger; 26 nodes.

Start, Function Item, HTTP Request +3
General

TheHive[v4]:Alert:create update get getAll promote merge:Case:create update get getAll:Observable:create update get search getAll:Task:create update get search getAll:Log:create get getAll. Uses start

Start, The Hive
General

uProc:Internet:*;. Uses start, uproc. Manual trigger; 41 nodes.

Start, Uproc
General

uProc:Audio:*:company:*;. Uses start, uproc. Manual trigger; 36 nodes.

Start, Uproc
General

Trello:Board:*List:*Card:*Label:*CardComment:*Attachment:*CheckList:*. Uses start, trello. Manual trigger; 35 nodes.

Start, Trello