How to escape a variable inside a Array for image upload into Airtable

Describe the problem/error/question

I have this Array that Airtable attachament field require to upload a imagem:

{{ [{ “url”: ‘https://mydomain.com/typebot/806943350.png’}] }}

i want substitue the 806943350.png to this variable:

{{ $(‘etiquetas.io2’).item.json.priceTagCode }}

Sorry my so begginer question , but i tried a lot of options without success…

Well should be something like this:

{{ [{ “url”: ‘https://mydomain.com/typebot/{{ $(‘etiquetas.io2’).item.json.priceTagCode }}.jpg’}] }}

What is the error message (if any)?

image

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.26.0
  • **Database SQLite
  • **n8n EXECUTIONS_PROCESS setting : default
  • **Running n8n via Docker
  • **Operating system: Ubuntu 22.04 Lts

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:

[{ “url”: “https://youdomain.com/typebot/'{{ $json[“FILE-NAME”] }}”}]

this works for Airtable Image Upload single file.

Pls, close the trhead.

1 Like

Hey @etiquetasio,

Nice find :raised_hands:

1 Like

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