[英]Data Studio Community Connector - How do I fetch data from a CSV file in Google Cloud Storage?
I just wanted to to check if you can connect to a storage bucket address through the Community connector service.我只是想检查您是否可以通过社区连接器服务连接到存储桶地址。 We have a CSV file which would be generated as part of the getConfig() function
我们有一个 CSV 文件,它将作为 getConfig() function 的一部分生成
GetConfig() triggers user input Based on user input -> generate csv file and store in gs://....../newDataSource.csv Pass storage Url back to Data Studio to query rather than passing Data object. GetConfig() triggers user input Based on user input -> generate csv file and store in gs://....../newDataSource.csv Pass storage Url back to Data Studio to query rather than passing Data object.
Thanks Alex谢谢亚历克斯
Assuming the CSV is publicly accessible in your GCS bucket, you can use UrlFetchApp to fetch the file in your getData
function.假设 CSV 在您的 GCS 存储桶中可公开访问,您可以使用UrlFetchApp在您的
getData
function 中获取文件。 Rather than using the gs://....../newDataSource.csv
path, use the public https path for the CSV when you are making the UrlFetchApp
call.在进行
UrlFetchApp
调用时,不要使用gs://....../newDataSource.csv
路径,而是使用 CSV 的公共 https 路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.