简体   繁体   English

如何使用 Google Apps Script 将结果从 Google Forms 传递到 Google Data Studio?

[英]How to Pass results from Google Forms to Google Data Studio using Google Apps Script?

I've been working on Google Apps Script for the past few days, a friend of mine created a template of PDF in Google Data Studio.过去几天我一直在研究 Google Apps Script,我的一个朋友在 Google Data Studio 中创建了一个 PDF 模板。 We also have a Google Sheet that came from the Google Forms result.我们还有一个来自 Google Forms 结果的 Google Sheet。 Here are the questions I want to resolve.以下是我想解决的问题。

  1. When the user submits the form, I want the record of that submitted form to populate the Google Data Studio PDF and export it as PDF using Google Apps Script (just that single record to create a PDF every time the user submits.)当用户提交表单时,我希望该提交表单的记录填充 Google Data Studio PDF 并使用 Google Apps Script 将其导出为 PDF (每次用户提交时只需该单个记录创建 PDF。)

  2. I want to use Google Apps Script to get every record in the existing Google Sheet to populate the Google Data Studio PDF Template and export it as PDF.我想使用 Google Apps Script 获取现有 Google Sheet 中的每条记录,以填充 Google Data Studio PDF 模板并将其导出为 PDF。

  1. You cannot use Apps Script to interact with the Data Studio interface in any way.您不能以任何方式使用 Apps 脚本与 Data Studio 界面进行交互。 It is currently not possible.目前是不可能的。

  2. Again, you cannot use Apps Script to initiate the PDF export.同样,您不能使用 Apps 脚本来启动 PDF 导出。 However, if all your data is in a Google Sheet, you can just build a dashboard off that in Data Studio and manually export the PDF.但是,如果您的所有数据都在 Google Sheet 中,您只需在 Data Studio 中构建一个仪表板并手动导出 PDF。 As your data gets updated, dashboard will also get updated.随着您的数据更新,仪表板也会更新。 You can initiate the PDF export manually whenever you want.您可以随时手动启动 PDF 导出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM