Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs_mail_merg Issues #810

Open
thebaker05 opened this issue Jun 5, 2023 · 3 comments
Open

docs_mail_merg Issues #810

thebaker05 opened this issue Jun 5, 2023 · 3 comments
Assignees

Comments

@thebaker05
Copy link

thebaker05 commented Jun 5, 2023

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)
@thebaker05
Copy link
Author

thebaker05 commented Jun 5, 2023

  • 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

@wdockery
Copy link

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?

@thebaker05
Copy link
Author

thebaker05 commented Jul 29, 2024

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': '[email protected]'
}

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants