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 從公開儲存庫中收錄這些內容。

檢舉或申請下架