简体   繁体   English

如何在现有脚本上添加Google文档链接

[英]How to add a Google Doc link on an existing script

So I found this helpful template script to create an automating help desk workflow. 因此,我找到了这个有用的模板脚本来创建自动化的帮助台工作流程。 User fills out the form and they automatically receive an email with the message "Thanks for submitting your issue. \\n\\nWe'll start " + "working on it as soon as possible. 用户填写表单后,他们会自动收到一封电子邮件,其中包含“感谢您提交问题。\\ n \\ n我们将尽快开始“ +”工作。

function formSubmitReply(e) {
    var userEmail = e.values[3];
    MailApp.sendEmail(userEmail,
      "Help Desk Ticket",
      "Thanks for submitting your issue. \n\nWe'll start " +
      "working on it as soon as possible. \n\nHelp Desk",
      {name:"Help Desk"});

All I want to do is add clickable link to our procedure Google Doc page to the that message. 我要做的就是将指向我们过程Google文档页面的可点击链接添加到该消息。 I just learning the basics of scripting and just need a little jump start on this. 我只是学习了脚本编写的基础知识,只需要对此稍作改动即可。

You can add a clickable link like this: 您可以添加如下所示的可点击链接:

function formSubmitReply(e) { 函数formSubmitReply(e){
var userEmail = e.values[3]; var userEmail = e.values [3];
MailApp.sendEmail(userEmail, MailApp.sendEmail(userEmail,
"Help Desk Ticket", “帮助台票”,
"Thanks for submitting your issue. \\n\\nWe'll start " + “感谢您提交问题。\\ n \\ n我们将开始” +
"working on it as soon as possible. \\n\\nHelp Desk" +""+Click here+"", “尽快进行处理。\\ n \\ n服务台” +“” +单击此处+“”,
{name:"Help Desk"}); {name:“帮助台”});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用脚本编辑器(谷歌文档插件)删除谷歌文档中的空行? - How to remove empty lines in a google doc using the script editor (Google Docs add-ons)? 如何通过脚本向现有的谷歌表单项添加验证? - How to add validation to existing google form items via script? 如何从附加组件轮询 Google Doc - How to poll a Google Doc from an add-on 如何将操作按钮添加到 google-doc? - How add action button to google-doc? Google Doc的脚本 - Google Doc's Script 如何使用 Google Apps 脚本将 Google Meet 链接添加到新的 Google 日历活动? - How to add a Google Meet link to a new Google Calendar Event using a Google Apps Script? 如何使用 Google Apps 脚本为每个活动创建(在特定的 if 语句中)添加唯一的 Google Meet 链接 - How to add a unique Google Meet link for every event creation (within a specific if statement) using Google Apps Script CurrentTime脚本在Google文档中不起作用 - CurrentTime script not working in Google Doc VBA到Google Doc Apps脚本 - VBA to Google Doc Apps Script 正在寻找一种使用 Google Apps 脚本或 DOCS API 为 Google 文档中的段落添加边框的方法? - Looking for a way to add borders to a paragraph in a google doc using a Google Apps Script or perhaps the DOCS API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM