Recipe Sync Contacts To Sheet

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Export Google Contacts directory to a Google Sheets spreadsheet.

AI 產生的概覽

將 Google 聯絡人目錄匯出到 Google 試算表,產生包含姓名、電子郵件與電話的資料列。

功能
這個配方描述了一套三步流程,用來把 Google 聯絡人中的資料搬到 Google 試算表。它先以涵蓋姓名、電子郵件地址與電話號碼的讀取遮罩列出目錄人員,接著建立帶有 Name、Email、Phone 表頭的試算表,再為每位聯絡人附加一列。最終產出是一份包含目錄清單的試算表。
適用情境
當你需要一份 Google Workspace 目錄清單的試算表副本時使用,例如在聯絡人介面之外檢視、分享或處理聯絡人資訊。它適合對目錄資料做一次性或重複性的匯出,而非個人聯絡人管理。
執行需求
需要 gws 命令列工具,以及 gws-people 和 gws-sheets 技能,並需具備存取 Google 聯絡人與 Google 試算表的已驗證權限。還需要目標試算表 ID。此技能不附帶指令碼,僅為操作說明。

Export Google Contacts to Sheets

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

Export Google Contacts directory to a Google Sheets spreadsheet.

Steps

  1. List contacts: gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json
  2. Create a sheet: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]'
  3. Append each contact row: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "[email protected]", "+1-555-0100"]'

來源與署名

來源:googleworkspace/cli位於skills/recipe-sync-contacts-to-sheet提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架