K
K
koltykov2014-05-31 10:24:32
Notifications
koltykov, 2014-05-31 10:24:32

How to set up notifications about the occurrence of the date of the event in the table Google Docs (Drive)?

There is a table in Google Docs (drive). One of the columns contains the due date for a specific event.
Is it possible to make it so that when this date comes, an E-Mail or some other notification is automatically sent, or a new reminder event is created in Google Calendar?
In old tables it was possible to add in Add Reminder scripts. And now the squeaks have been removed ... I looked for reminder, notify in Extension, but I didn’t find anything like that ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Karmazin, 2014-12-09
@dkarmazin

I also need this feature.

N
n_shtain, 2015-07-19
@n_shtain

1.An example of data organization:
https://docs.google.com/spreadsheets/d/1Vx2P0pmdyW...
2.Script to be placed in "Code.gs" ​​via Tools->Script editor:

function emailsend () //Отправляет e-mail при выполнении условия описанного в if
{
  var sovpadenieDat = in_array(reminder (), perebor_dat());
  if(sovpadenieDat > -1) 
  {
    MailApp.sendEmail(
                      "[email protected]",
                       perebor_dat()[in_array(reminder (), perebor_dat())] + " тебе нужно " + vozvrat_temy()[in_array(reminder (), perebor_dat())],                             
                      'Привет! Это напоминание про дело которм тебе нельзя забывать.'
                     )
  }
} 
 
function reminder ()  //Прибавляет к текущей дате 3 дня. Возвращается не дата, а строка но ее сравнение с содержимым массива perebor_dat() прокатывает
{
  var dates = new Date()
  var reminderMonth = dates.getMonth()+1;
  var reminderDate = dates.getDate() +3 ;
  var reminderYear = '2015';
  return reminderDate + "." + reminderMonth 	+ "." + reminderYear;
}

function perebor_dat() //Возвращает массив отформатированных значений содержащихся на текущем листе в диапазоне A2:Z2. Проблема с возвратом значений из ячеек AA2, AB2 так как цикл проходит только по алфавиту
{
  var kolonkaplus = [];
  for (var i=65; i<=90; i++)
  {
    kolonkaplus.push(Utilities.formatDate(new Date(SpreadsheetApp.getActiveSheet().getRange(String.fromCharCode(i)+'2').getValues()), "GMT+3", "d.M.yyyy"));
  }
  return kolonkaplus;
}

function vozvrat_temy() //Возвращает массив отформатированных значений содержащихся на текущем листе в диапазоне A1:Z1. Проблема с возвратом значений из ячеек AA1, AB1 так как цикл проходит только по алфавиту
{
  var kolonkaplus = [];
  for (var i=65; i<=90; i++)
  {
    kolonkaplus.push(SpreadsheetApp.getActiveSheet().getRange(String.fromCharCode(i)+'1').getValues());
  }
  return kolonkaplus;
}

function in_array(value, array) //Проверяет массив на наличие в нем значения
{
  for(var i = 0; i < array.length; i++) 
  {
    if(array[i] == value) return i;
  }
  return -1;
}

3. In the script editor, you need to set the current project's trigger to the time at which you want the reminder to come to you.
4. [email protected]install your mail instead. var reminderDate = dates.getDate() +3change the three depending on how many days before the date of the event you need to send a reminder.
Updates here: https://github.com/mc-sim/GoogleDocs_uvedomlenie_o...
PS: I'm just starting to deal with github.

D
Damir Makhmudov, 2014-12-20
@MakhmudovDamir

You can implement this feature using Google Apps Script. The script will be embedded in the table. If you need more, I can help. We can expand the functions of your table even more. Write to [email protected]

A
annaivanovna1979, 2017-04-17
@annaivanovna1979

does not work :(

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question