Gmail Add-on trigger criteria

不羁的心 提交于 2019-11-28 13:17:09

you can use ActionResponseBuilder.setStateChanged(), to clear the cache

link: https://developers.google.com/gmail/add-ons/how-tos/interactions

Currently, Google Apps Script doesn't have triggers for Gmail events so the trigger will not invoke every time, the user navigates to a different Gmail conversation. Whenever a new message open it will invoke trigger, contextual trigger. You can also tryout time-driven trigger which invokes after each time interval. To use time-driven trigger open your project on https://script.google.com/. In Apps Script Editor, navigate to Edit -> All your triggers. If there is no trigger then setUp one and Save. See this example Create Time-driven trigger in Gmail-add on

Refer this link for more information How do I detect when I view an email in gmail with google-apps-script script? I think this might be helpful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!