I created two HTML Google Docs files in n8n using the Google Drive API. When I add one file to the other using the update command, the attached file appears as HTML text. How can I merge the two files into a single file?
Thanks for your help.
Hey, I made an example workflow to show you how you can manipulate the contents of 2 files and then merge them.
- Search for file in Drive
- Use ID do download file content form Docs
- Merge to make sure the 2 branches are done
- Merge strings of content with Code Node
- Convert to Binary
- Upload/Update file
Mark this as Solution if it helped, or ask me anything ![]()
These are the documents that I want to merge. They are in my Google Drive and both are enabled. My goal is to merge these two separate files.
Can you provide the files here, or snippets of them that follow the same structure?
The workflow is successful,tahank you, but the resulting doc file only displays text. It's not like HTML.
Hey, took a while but I came up with this:
It downloads files from Drive, converts them to HTML, combines them, then uses the Drive v3 API to do a multipart upload as a Google Doc.
Feel free to mark it as Solution if it helps ![]()
Thank you.
Workflow is complete until the merge. Two downloadable files are created. These are exactly the outputs I wanted. My goal is to merge these two files into a single file. However, the final workflow file is like this: "~)^ +-zo ~)^ +-zo "
Please provide the files your are testing with, or snippets of them, so I can check and reproduce the issue
1 click page 1 update insert next 1 click page2 update insert ???
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

