Combine HTML Content from two google docs to create a new google doc

I am creating a doc with html and replacing some text in it. Afterwards, I would like to append that text into an existing google doc but I know google docs only supports HTML at the creation of the doc so instead I want to get the content from both docs and combine them into a third doc

Hi, welcome to the community!

It is a really interesting use case.
I thought about a possible solution and this is my idea. You must check it out on your documents. I have only extremely simple samples and with them it works perfectly fine, but I cannot guarantee that it will be the same with images/complex formatting.

Instead of using “Get Content of a Document,” use the “Download a Document” module and set “Type” to HTML Format.

Using this approach, the next step is to map data form “Download a Document” module into content field in “Create a Document” module. Between variables you can add necessary HTML code.

And that’s it. Please let me know if that works for you.

Have a great day!

1 Like

Hi there

I’m facing the same kind of issue.

I have a table in HTML (Module 11) that I want to append to an existing Google doc (created in 12 and downloaded in 14 in HTML format)

In the last module I try to append the table HTML to the the HTML code of the existing google doc by replacing a string placeholder (>> TABLE INSERT<<) in the existing Google doc with the HTML code of the table but it does not work for some reason.

Any ideas on why is the case and how I should make it work?