[英]How can I create a confirmation link in email?
So I have a spreadsheet which serves as form. 所以我有一个电子表格作为表格。 What I basically want to do is generate a link that when you click it it will trigger an Apps Script function.
我基本上想做的是生成一个链接,当您单击它时,它将触发一个Apps脚本功能。 So the question is more "How to generate a link that when is clicked (requested) it will run an Apps script function?"
因此,问题更多是“如何生成一个链接,当该链接被单击(要求)时,它将运行Apps脚本功能?”
Later I need to send this link to a specific email but that one I do know how to do. 稍后,我需要将此链接发送到特定的电子邮件,但是我确实知道该怎么做。
You can serve an HTML page with the doGet/doPost method, and when opened it triggers any Apps Script function plus shows a success message, you can also use an AJAX/XMLHttpRequest from any other page to trigger apps script functions with conjunction with the doGet/doPost. 您可以使用doGet / doPost方法为HTML页面提供服务,并且在打开HTML页面时会触发任何Apps脚本功能并显示成功消息,还可以使用其他页面上的AJAX / XMLHttpRequest来与doGet一起触发应用脚本功能/ doPost。
How to serve a HTML page from Apps Script: 如何通过Apps脚本提供HTML页面:
https://developers.google.com/apps-script/guides/html/ https://developers.google.com/apps-script/guides/html/
How to execute GAS functions from a page deployed from Apps Script: https://developers.google.com/apps-script/guides/html/communication 如何从通过Apps脚本部署的页面执行GAS功能: https : //developers.google.com/apps-script/guides/html/communication
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.