GASで書いたスクリプトをWebアプリケーションとして公開し、呼び出したいのですが下記エラーが返ってきます。
returnの形式に制限があるのでしょうか?
The script completed but the returned value is not a supported return type.
JavaScript
1function test(){ 2 var url = 'https://script.google.com/macros/s/****/exec'; 3 4 var options = { 5 "method" : "POST" 6 } 7 Logger.log(UrlFetchApp.fetch(url,options)); 8} 9 10function doPost(e) { 11 var result = {data:"hoge"}; 12 return result; 13}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。