Skip to content

Update Derivative field in Table 1 when column in Table 2 updated? #1276

Discussion options

You must be logged in to vote

Hey @teddygarcia, we have a specific video tutorial that covers precisely what you're looking for. The attached video provides a step-by-step demonstration of how to synchronize changes between two tables.

You'll need to create a Task Extension with the following script to implement this. Set the trigger event to Update. Here's the code:

const extensionBody: TaskBody = async({row, db, change, ref, logging}) => {
  logging.log("extensionBody started");

  if (change.after.exists) {
    const previousCountryName = change.before.get("countryName");
    const newCountryName = change.after.get("countryName");

    // Update the corresponding cities with the new country name
    const citiesSna…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BeeBombshell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants