I am trying to create a script that will take a document with a Google Doc document, create a copy, replace certain text with information from a row in my spreadsheet, add another page, replace text with information from the next row in a spreadsheet, add another page, etc.
Here is what I still have:
I looked at a reading tutorial from a spreadsheet, but I could not get getRowsData()
and getObjects()
to work correctly. My script above creates the document correctly, but does not insert the second set of information on the second page and the third set on the third page, etc.
source share