Scenario:
- Create a new spreadsheet from a template.
- Add URLs to certain cells and use the IMAGE function in the next column to display the linked pictures.
Problem:
Each time a new spreadsheet is created, it requires manual permission to allow “external parties” access to the data, showing a warning:
“Warning: Some formulas are trying to send and receive data from external parties.”
Goal:
Automate the process to approve external data access automatically when a new spreadsheet is created, so I don’t have to open each sheet and manually click “Allow.”
I post a lot to google sheets with no problem. Even new ones. It might be a google account setting somewhere.
you use the IMAGE function? Text is working fine.
Hello everyone. I just wanted to share this for anyone who’s still looking for a solution:
Here’s an API call that will update the parameter of the spreadsheet:
Here are the details:
- after the spreadsheet ID in the URL:
:batchUpdate
- Method: POST
- Body of the request
{
"requests": [
{
"updateSpreadsheetProperties": {
"properties": {
"importFunctionsExternalUrlAccessAllowed": true
},
"fields": "importFunctionsExternalUrlAccessAllowed"
}
}
]
}
Hope this helps.
1 Like