I am trying to show a message box in Google Doc using App Script.
Browser.msgBox("Hi There");
When I run this I am getting the below error.
You do not have permission to call Browser.msgBox. Required permissions: (https://www.googleapis.com/auth/spreadsheets.currentonly || https://www.googleapis.com/auth/spreadsheets) (line 2, file "restore")
The following are the manifest entries present in my doc project.
"oauthScopes" : [
"https://www.googleapis.com/auth/activity",
"https://www.googleapis.com/auth/script.container.ui",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/documents.currentonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/gmail.compose",
"https://www.googleapis.com/auth/script.scriptapp"
]
Can anyone tell me how to make Browser.msgBox("Hi There")
work without adding sheet permissions in manifest?