Create a new filter in Gmail using Google Apps Script

I want to create a new label and a new filter in Gmail using Google Apps Script, which will push all new emails to a specific label. I have already created a shortcut that works fine, but I cannot create a filter.

I know that it’s easy to create a new filter in the GMail search criteria. But I want to automate exactly the same function, and then publish it to my team of 100 people, so they don’t need to do it manually.

Any help on this is greatly appreciated.

Thanks a lot Prachi

+4
source share
1 answer

update 2016: gmail api . gmail script, .
script, , (moveToArchive). "" "" .

gmail , " " , script .

+3

Source: https://habr.com/ru/post/1542798/


All Articles