Send Doc as HTML email or output to webapp
Send Doc as HTML email or output to webapp Send Doc as HTML email or output to webapp Use the document ID along with a fetch request to the URL to return the web contents as HTML. function getContent() {const url = ‘https://docs.google.com/feeds/download/documents/export/Export?id=’+DOCID+’&exportFormat=html’;const param = {method : ‘get’,headers : {‘Authorization’ : ‘Bearer ‘+ ScriptApp.getOAuthToken()},muteHttpExceptions: true};let … Read more