Dec 20, 2023 07:54 AM
I have a script that has been working for over a year, but now will not update records. I sync a table from another base to a second tab in main base. I then use the following script I was given over a year ago (can't remember where I got it). It has worked great to look at the synced tab to see a unique ID (emp #) and then pull that onto the main table and pull multiple records from the syned tab.
Now when I run it the script runs super fast and doesn't update anything even though I have matching Unique IDs.
Here is the script I am using:
Solved! Go to Solution.
Dec 20, 2023 10:20 AM
When a script that has been working stops working, the first thing I look at is any schema changes that may have happened. Seemingly minor changes to field types can have big impacts to scripts. I’m guessing that you are not seeing any record updates because the script is not finding any matches, possibly due to the field types of the {emp} and {Emp} fields.
By the way, this particular script looks like it is a rather inefficient script. That may not be a problem as you are probably running it in scripting extension and not as an automation.
Dec 20, 2023 10:20 AM
When a script that has been working stops working, the first thing I look at is any schema changes that may have happened. Seemingly minor changes to field types can have big impacts to scripts. I’m guessing that you are not seeing any record updates because the script is not finding any matches, possibly due to the field types of the {emp} and {Emp} fields.
By the way, this particular script looks like it is a rather inefficient script. That may not be a problem as you are probably running it in scripting extension and not as an automation.
Dec 20, 2023 10:25 AM
I'll take a look at field types.
As for how I am running it, yes I am running it through Extensions as I don't know how to run as Automation within Airtable. Any help guides or videos to help learn this?
Dec 20, 2023 10:27 AM
Thanks @kuovonne !
The field type did the trick! Not sure how it changed to a Number field or if it was always set that way. I changed to a text field and worked!