Move To Binary help

Hi All,

I am still relatively new to n8 and finding my feet. I am trying to to convert the email field generated from a start event into binary and pass this onto my facebook node.

In the Move Binary to Data I have tried setting up the following:

However whenever I execute this node I get no data:

If I change to “convert all data” I am able to see all the data in the window, json, table and binary.

However all i want to do is convert the email.

Please let me know what I am missing in order to achieve this.

Thanks,

Hey @Surge.Media,

Welcome to the community :sparkling_heart:

You don’t need pass on the value as an expression. You just need to enter the key in the Source Key field.

Here’s an example workflow that will help you better understand:

{
  "nodes": [
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "Mautic Trigger['email'][0][stat]",
              "value": "[email protected]"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "convertAllData": false,
        "sourceKey": "Mautic Trigger['email'][0][stat]",
        "options": {}
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "Move Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

I hope this helps :slight_smile:

Hi @harshil1712 - thank you very much for the quick response.

Unfortunately I do not understand your answer :frowning:

How do i do this through the GUI ?

:pray:

Hey @Surge.Media,

You can copy and paste the above workflow into your workflow editor. In the Source Key field, I’ve entered the key Mautic Trigger['email'][0][stat]. This key contains the value of the email address that I want to convert to binary. In your workflow, you might want to update the value based on the key that contains the data.

Let me know if you have more questions.

1 Like