N
N
Nik322020-02-01 00:17:24
Google Apps Script
Nik32, 2020-02-01 00:17:24

How to run a script on a condition?

Hello, tell me please. Here I have a script that copies data from the "Data" table Sheet1 to the "Employee" table Sheet2, how to make the script in the "Employee" table Sheet2 run automatically after it copies the script from the "Data" table.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2020-02-01
@oshliaer

No way. There is no such event.
You have two or three exits.

  • For example, call after the first function the second
  • Or create an instant trigger that will be called after it is created
  • Run the second function in the trigger, checking if there are any changes

Going Beyond Scripts
  • Check Drive Activity
  • Subscribe to Pub/Sub
  • Create a watcher (this is probably not necessary)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question