recipe-share-doc-and-notify

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Share a Google Doc and Notify Collaborators

分享Google Doc并通知协作者

PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
,
gws-docs
,
gws-gmail
Share a Google Docs document with edit access and email collaborators the link.
前提条件: 加载以下技能以执行此方案:
gws-drive
gws-docs
gws-gmail
分享具有编辑权限的Google Docs文档,并向协作者发送包含链接的邮件。

Steps

步骤

  1. Find the doc:
    gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}'
  2. Share with editor access:
    gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}'
  3. Email the link:
    gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'
  1. 查找文档:
    gws drive files list --params '{"q": "name contains '\''Project Brief'\'' and mimeType = '\''application/vnd.google-apps.document'\''"}'
  2. 授予编辑权限并分享:
    gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}'
  3. 发送包含链接的邮件:
    gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'