每当使用 Cloud Function 添加新记录时,是否可以将数据从 Firestore 填充到 Google Sheet?

Ras*_*ida 1 google-sheets google-cloud-functions google-cloud-firestore

我正在尝试构建这个应用程序,我计划将我的数据存储在 Firestore 数据库中。我的客户需要 Google 表格中的数据。

我是否可以使用 Cloud Function 直接将 Firestore 中的记录填充到 Google Sheet,并且每当将新记录添加到 Firestore 时,Google Sheet 都会自动更新?

有人可以建议任何对这个主题有帮助的资源吗?

Adr*_*ian 6

是的,您可以使用带有 Firestore 触发器的云函数,当您的 Firestore 文档更改时会收到通知,在该函数中您将调用 google API 来更新 google 表格。

您可以找到带有 firestore 触发器的端到端测试云函数应用程序的示例。