Populate Multiple Google Docs Template with One Google Sheet - google-sheets

I have created a comprehensive Google Form, which I have then link the responses in the connecting Google Sheet to one Google Docs Template. However, I am trying to use the same Google Sheet to populate other Google Docs Templates.
The responses in the Google Sheets will be applicable to some Google Docs Template, but not others.
For example, I have created a Google Form to undertake a privacy audit of business and the answers automatically populate a privacy audit report for me via the Google Sheet, but I would also like some of those answers to populate a privacy policy and other privacy related documents at the same time. I have uploaded all the different templates to Google Docs, but I am having difficulty with linking more than one template in the App Script of the Google Sheet.
It worked when I was just connecting the one template, but now that I am trying to add a second template file it won't work. When I run the script the error message says Cannot read properties of undefined (reading 'values')
autofillGoogleDocs
Can anyone provide further guidance?

Related

Generating a google doc template from google sheets?

I am trying to create a google doc that is fed by a google sheet. Each row created in the sheet needs to generate a google doc in which the information in the row is inserted into the document template in the correct places. Any experience generating docs from individual rows in sheets and could assist with this?
I am not sure if this is the solution you are looking for, but you may want to try this.
Make a table with google sheet like this one:
create a new document within google drive, and type the variables with double brackets like this: {{name}}
Go to the add-ons market in g suite market place, and search for document studio.
With it, you can generate files with custom data from a google sheet.
(it has a free trial with limit to 20 document a month per user if I remember correctly).
After you install it, access your google sheet again and open the add on. It will look like this:
Choose your google doc, and the add-on will automatically identify the variables you listed.
You can then select the file output type (PDF, WORD etc..). The add-on can send the file via email if needed as well.

Pull Google Sites data into a Google Sheet

Our team currently uses Google Sites as a platform for our internal WIKI. Our WIKI is quite large and we need a way to better monitor page updates. For example, if a team member creates a new page or modifies an existing page, these changes need to be reviewed and signed off by another team member.
As it stands, we cannot find an app for Google Sites that will help with this process. Our idea is to connect our Google Site with a Google Sheet. The Google Sheet would automatically (1) list every page available on our Google Site, (2) the data the page was last modified, and (3) the person who modified it.
Does anyone know if it's possible to connect a Google Site to Google Sheets in this way?

When to Call Something "Docs" and When to Call it "Drive"

So, a quick background. I make productivity apps (specifically CRM and Project Management). And I love the docs, spreadsheet and presentation products made by Google. Not surprisingly, my products have done a lot of "things" with Google Docs for a long time:
Create "native" (ie. Docs/Spreadsheets/Presentations) documents
Use native documents as templates
Link and modify permissions of any file in Docs/Drive
Upload any arbitrary file
etc.
What I'm confused about is what does Google want me to do on the labels on the buttons in my app. Right now, they all say "Google Docs". You're linking any arbitrary file to a presentation, you're linking it from "Google Docs". You're exporting a spreadsheet of time sheet entries, you're exporting it to "Google Docs". You upload a PDF, you uploaded it to Google Docs. Etc.
What I'm confused about is that, and correct me if I'm wrong, but I don't think it is a complete switch over to "Drive." I still see labels on the Google site for Google Docs. So, this is what I think the breakdown is:
If it is a Google "native" file, then it is Docs, else it is Drive. Thus, if your uploading any arbitrary file, that button should refer to drive. But if you are exporting a spreadsheet of data to the Google Spreadsheets format, then that is Docs.
Is this right at all? Does Google have some information somewhere?
Disclaimer: personal opinion
I would use Drive everywhere, except when specifically talking about the collaborative word processor provided in Google Drive, that is the Google Doc.
I would also make sure that all my integrations use the new Google Drive API.
There is reasonably good guidance here: https://developers.google.com/drive/branding
Google Docs and Google Drive are two seperate products from Google. They can work together, but they are still their own individual products and should be called their respective names when being used

Is it possible to change google doc (table) using google API?

Following the API's description :
"The Google Documents List API allows developers to create, retrieve, update, and delete Google Docs"
What if I need to write something in a table using an external application?
This is totally and completely possible. For example, I am using python to create and update Google Doc Spreadsheets based on what the user does. There are multiple languages for you to choose from and all are fairly well documented.

Does Google Docs Have any Externally Accessible Link to Show a Doc and Its Associated Sharing Dialog?

I am working on GNOME's Documents application for my Google Summer of Code project. The Google documents listing that we get from libgdata is organized in a Feed object which is composed by Entry objects (an entry map to a document). Each Entry has an "alternate" link that maps to a browser accessible version. We are currently allowing users to open their Google docs in the browser via such an "alternate" link.Each Entry also has an associated "access rule" Feed which is in turn composed by Entries specifying permissions, but neither of those seem to have an alternate link.I am wondering if there is any way to access an alternate link to show a Google document and the associated Google docs sharing dialog in a webkit webview? Thanks very much!
Check the Documents List API documentation for details on how to manage sharing:
https://developers.google.com/google-apps/documents-list/#managing_sharing_permissions_of_resources_via_access_control_lists_acls
Also, consider using the newer Drive API which exposes the same functionality:
https://developers.google.com/drive/manage-sharing

Resources