On Change Trigger - Apps Script | Script Service ~ Episode 3.4

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 19

  • @coreyredmon5611
    @coreyredmon5611 26 дней назад

    When you removed the filter, that event wasn't logged. Does anyone know a trigger which will catch filter changes?

  • @moisesruedarivero8795
    @moisesruedarivero8795 2 года назад

    Excellent. But If I want to get data from an HTML form into the spreadSheet and once data sequentially is filled into the spreadsheet column 4, will still work the trigger function?

  • @thomasprevarin8992
    @thomasprevarin8992 2 года назад

    @David Weiss How would you get the reference to the row or column that has been deleted/inserted?

  • @phipps212
    @phipps212 4 года назад +1

    I have a sheet shared with multiple people. What would the syntax be to capture the user's email that makes the changes? From what I found in the docs, I tried the following to no luck:
    [
    e.getEmail(),
    e.changeType,
    e.source.getSheetName(),
    e.source.getActiveSheet().getActiveRange().getA1Notation(),
    new Date()
    ]

    • @eehm
      @eehm 3 года назад

      is with e.user

  • @shenkwen
    @shenkwen 2 года назад

    So the changes in the "change log" sheet is not logged? Why is that?

  • @aceoffortune
    @aceoffortune 2 года назад

    Hi David, I want my sheet to retain its formating if someone mistakenly pastes extenal data (i.e from excel) with different formating via Ctrl+V. Can this be done using any trigger or something else? Thanks

  • @IrfanAli-zt7nz
    @IrfanAli-zt7nz 4 года назад +1

    Hi David, thanks for the video. Have one question. How can I detect changes of a dependent sheet if master sheet changed?

  • @hoakeen
    @hoakeen 4 года назад +1

    Very helpful! Thanks!!

  • @sayandebnath3008
    @sayandebnath3008 Год назад

    Which one is faster between on edit and on change?

  • @SamirSELLAMI
    @SamirSELLAMI 4 года назад

    What if the spreadsheet is shared among multiples users (editors), how can we capture users info who made the changes ? Thanks in advance

  • @leshgabes
    @leshgabes 11 месяцев назад

    Спасибо! Увы, так и не нашел возможность отслеживать изменения, вызванные скриптами, а не пользователем

  • @Oliver-lh8ly
    @Oliver-lh8ly 4 года назад

    Would it be possible to combine this function with data scraping of a website to collect data from the website over time and to form that data collected over time into a graph? Is there a better way to do this?

  • @rayjohndelapena6310
    @rayjohndelapena6310 4 года назад

    Hi, Im trying to set up this type of trigger but the changes will come from the google app script. Meaning user wont directly access the google sheets and will use an application that will send data to google sheet. Problem is I dont think the trigger is not capturing the changes when the changes is done by a set of code on google apps script. Can you help me with this? Thanks!

    • @DavidWeissProgramming
      @DavidWeissProgramming  4 года назад

      Hi Ray, yes unfortunately this is a limitation of both simple and installable triggers. According to Apps Script Documentation:
      "Script executions and API requests do not cause triggers to run. For example, calling FormResponse.submit() to submit a new form response does not cause the form's submit trigger to run."
      Which can be referenced in the docs here: developers.google.com/apps-script/guides/triggers/installable
      If this is a strict requirement for your application, I would suggest setting up a time based trigger which checks the state of the spreadsheet say every 1 or 5 minutes. Record all that data, perhaps in PropertiesService. Then, after another minute or 5, check the state of all the data in the spreadsheet again and cross reference that to the data you have stored in PropertiesService. If there is anything that differs, record the changes somewhere in your change log. This is neither a simple nor clean way to produce your desired result, but it may be the only way. I would be open ears to hear if anyone else had a more efficient way!

  • @arpitdoshi
    @arpitdoshi Год назад

    what if we want to create trigger when new row is created

  • @dishydez
    @dishydez 3 года назад

    Hey man, this was great content! I have a question, I am trying to do this but for INSERT GRID. Not quite sure how to go about this. The logic is that every time I open a new tab in the spreadsheet, it automatically copies and pastes the content from the source sheet to the new one. Any help would be much appreciated. Thanks!

  • @yungkuan1260
    @yungkuan1260 4 года назад +2

    I love you bro