Replace text with link in a Google Doc: Take Two

Hi

Ive tried implementing this solution but Im not smart enough to get it to work or it doesnt work anymore.

Can someone confirm if it is indeed not working or whether Im being stupid.

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:

I basically keep generating empty
“replaceCommands”:
[
]

Hi! I tried using the same code and felt like it was a bit confusing, especially with both code nodes haha. So I changed it up a bit.

image

Now you can define 2 lists:

replacements and variables

The “variables” are what you were using with [[property]] , but now you can define more if you need. Like for the example: test, property1, property2.

Then the “replacements” are what you need them to be replaced to (in the same order). (example: this, that, those)

So if you have [[test]] in the docs it will be replaced by “this”, if you have [[property1]] it gets changed to: “that”.

Hope this helps! obs.: Don’t forget to place the ID of the doc inside the trigger node.

1 Like

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