You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
Hi all,
I wonder why this error keep coming out when I try to run the automated sharing.
Exception: Unexpected error while getting the method or property getFileById on object DriveApp.
anyone can help to check what's the problem here?
Many thanks!!!
Luffy Heng
unread,
May 7, 2022, 11:53:34 AM5/7/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I have the permission to that file.
Luffy Heng
unread,
May 7, 2022, 12:22:00 PM5/7/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
after investigating, i realised the code capture the wrong fileID,e.g. https://docs.google.com/spreadsheets/d/1OMwlHZUIX-L28QNYCS.......hYD4ukrU/,the script only wants the middle part 1OMwlHZUIX-L28QNYCS.......hYD4ukrU, If i enter only the middle part into column 1 row 2, it works well.How do I modify the script to capture only the middle part so I don't have to do it manually?