Small CS Ops script to understand how many hours we have been spending on implementation.

This commit is contained in:
Norm Rasmussen
2023-12-11 16:54:17 -05:00
parent 1d8a2e6f2b
commit b35a650a11
5 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1 @@
{"scriptId":"10QXSGrp0KFNbW8SrcasrhcW9U4v2SZVWe1fTMqUUxlnz3-FHyrqaK4tQ","rootDir":"/Users/normrasmussen/Documents/Work/Scripts/GAS_GS/Imp_email_numbers"}

View File

@ -0,0 +1,19 @@
function getMail(){
var imp_customers = ['cin7', 'datasnipper', 'sandata', 'wsgc', 'anthology', 'chubb', 'achievece']
for (company of imp_customers) {
var counter = 0
var threads = GmailApp.search("to:"+company+" from:me");
for (var i = 0; i < threads.length; i++) {
var message = threads[i].getMessages();
for (var x = 0; x < message.length; x++) {
var item = message[x].getFrom();
var date = String(message[x].getDate());
if ( item.includes("nrasmussen@gainsight.com") && date.includes("Nov")) {
counter++
}
}
}
Logger.log(company+": "+counter)
}
}

View File

@ -0,0 +1,7 @@
{
"timeZone": "America/New_York",
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8"
}