Photo by Our Life in Pixels on Unsplash

Is the end of Coda Cross Docs near?

Add or update rows in your target doc using a webhook

Cross Doc Difficulties

Add Or Modify Rows

The set up

  • You define the table in your source doc from which you want to push rows to the target doc.
  • In this table you define key that serves as the match value in the target table.
set up in source document
  • the match value we generated in the source table is only necessary when this table is subject to an addOrModifyRow logic. To have a coherent approach, I create all my tables that are webhook related in this manner.
  • In the target doc, I don’t have a key, but I have a match value.
  • In the target doc you set up your webhook triggered automation.
  • The match value is the first column in our source doc.
  • The value we are looking for is written as:
match.Contains(thisRow.[Step 1 Result].ParseJSON("$.column1"))
  • The rest of the logic is rather straightforward. To proceed fast I copy past the line above to any next column (I did not yet give a name to the columns in my target doc, so they have names as column 3, column 4 etc) and every time I change the number.
  • Then I push the button in the source doc, the row comes in and I change the name of the column.

Do you need a button for the webhook?

  • sending the data over when the row changes
  • adding or modifying a row based on a webhook trigger
Coda Expert Christiaan on “The end of Coda Cross Docs”

--

--

I use Coda mainly for (HR) planning & (budget) calculations. Follow me to learn how to Coda with numbers. I blog at least once per week.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christiaan Huizer

I use Coda mainly for (HR) planning & (budget) calculations. Follow me to learn how to Coda with numbers. I blog at least once per week.