Skip to content

docs_mail_merg Issues #810

Open
Open

Description

@thebaker05

Summary

https://github.com/googleworkspace/python-samples/blob/main/docs/mail-merge/docs_mail_merge.py
--> docs_mail_merge

Expected Behavior

access to links Produced and for the resultant mail merge files to be deposited in my folders.

Actual Behavior

Receive the following message:

Merged letter 1: docs.google.com/document/d/11ePx7cP-M49rBVtF4gvaMBA02ZH92W5xOK5DXOzdH9Q/edit
Merged letter 2: docs.google.com/document/d/1to3zGwJYsBflIeiOm9pydNOdmQ9IJDXxbtNADEsylkA/edit

like from this angle it looks like my code has run perfectly fine but then. I visit the links and it asks for me to request access even though, I performed all the previous steps using the same Gmail account ( i.e. built all the credentials using the same Gmail account, etc).

Steps to Reproduce the Problem

Specifications

  • Python version (python 3.10.9)
  • OS (Windows)

Activity

  1. thebaker05 commented on Jun 5, 2023

    @thebaker05
    Author
    • My code runs produces two merged letters
      vv

    • Merged letter 1: docs.google.com/document/d/10uE43ObnAtJ57oVKuvxRvIKCsOHWhFN9TS5yCLnvsJs/edit

    • Merged letter 2: docs.google.com/document/d/19mJuTRdTtHl_bx6sRhdu10ivexgdKsAgGadZShPFqyk/edit

    • But when I click on these links it asks for access @davidharcombe

  2. wdockery commented on Jul 28, 2024

    @wdockery

    I am having precisely the same problem after coming across the mail-merge quickstart yesterday and giving it a spin. Has anyone discovered the problem/solution?

  3. thebaker05 commented on Jul 29, 2024

    @thebaker05
    Author

    Hey @wdockery , you will have to "# Establish new permissions for the document" for your document. ( basically put your code through chatgpt and ask it to "# Establish new permissions for the document" ) Should attach code some where in it like this :

    "# Establish new permissions for the document"
    new_permission = {
    'type': 'user',
    'role': 'writer',
    'emailAddress': 'youremail@email.com'
    }

    Hopefully that should work. again message if you have any questions or that doesnt work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions