Recipe Generate Report From Sheet

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Read data from a Google Sheet and create a formatted Google Docs report.

仅含说明Documents & Office
AI 生成的概览

从 Google 表格读取数据,生成格式化的 Google 文档报告,并分享给相关人员。

功能
该配方依次说明如何从 Google 表格读取指定范围的数据、创建新的 Google 文档、写入格式化报告,并向指定人员授予阅读权限。最终产出是一份由表格数据生成的、可共享的 Google 文档报告。各步骤以 gws 工具的命令行调用形式给出。
适用场景
当你需要把表格中的数字整理成供他人阅读的格式化文档报告时使用。它适合数据源在 Google 表格、输出为 Google 文档的周期性汇报任务。
运行要求
需要 gws 命令行工具,以及 gws-sheets、gws-docs 和 gws-drive 三个技能。需要访问 Google 表格、Google 文档和 Google 云端硬盘,并提供表格 ID、文档 ID 以及共享对象的电子邮箱地址。该技能不附带脚本,仅为操作说明。

Generate a Google Docs Report from Sheet Data

PREREQUISITE: Load the following skills to execute this recipe: gws-sheets, gws-docs, gws-drive

Read data from a Google Sheet and create a formatted Google Docs report.

Steps

  1. Read the data: gws sheets +read --spreadsheet SHEET_ID --range "Sales!A1:D"
  2. Create the report doc: gws docs documents create --json '{"title": "Sales Report - January 2025"}'
  3. Write the report: `gws docs +write --document-id DOC_ID --text '## Sales Report - January 2025

Summary

Total deals: 45 Revenue: $125,000

Top Deals

  1. Acme Corp - $25,000
  2. Widget Inc - $18,000'`
  3. Share with stakeholders: gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "[email protected]"}'

来源与署名

来源:googleworkspace/cli位于skills/recipe-generate-report-from-sheet提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架