Hi,
I have a goal of updating a Table Record (multiple) depending on the condition of another column. The application for this is a based test that needs to be conducted on our production floor every 2 hours from the last known test. Ex. user completes the test at 8am, the next test will need to be done before 10am otherwise the material can be considered suspect.
I have a table with a boolean column that checks “yes” when the test is completed through the app. I am stuck on creating the bot that will then go back and read each row and change the “yes” to a null or “no” value.
The table has a finite amount of rows, as it represents our production lines.
Column X is the one that needs to be changed, based on column “Datetime”
Here is what I started off with in the connector, but no luck
{
“table_name”:“uf2jbGB9DJ927c5Hf”,
“column_to_update”:“zwnfi_column_x”,
“new_value”:" “,
“condition_column”:“lnrht_datetime”,
“condition_operator”:”>",
“condition_value”:6200
}
Also
{
“zwnfi_column_x”: false,
“$expr”: {
“$gt”: [
{ “$subtract”: [ new Date(), “$lnrht_datetime” ] },
6200000
]
}
}
Any help or advice is appreciated, even if its that I am approaching this problem the wrong way