Hello. I am trying to create an automation or a script that updates a cell in a given table based on a unique identifier that can be matched to a unique identifier in another table. In my mind, I'm basically wanting to do a left join, except that I want to populate missing values in a column instead of just bringing the whole column in. So, more of a if x is null, x = value from column in another table mapped by a lookup value/unique ID.
More detail about table structure:
Table A: File Names
Column A- Name [short text- is essentially file names, as in ThisDocumentName.docx]. Is populated through a Link to another record column from another table.
Column B- Google Drive Link, missing some values [url]
Column C- Unique ID [short text- is essentially a cleaned version of Column A]
Table B: Google Drive Links
Column A- Name [short text- is essentially file names, as in ThisDocumentName.docx]
Column B- Google Drive Links, complete [url]
Column C- Unique ID [short text- is essentially a cleaned version of Column A]
I want Table A-Column B empty values to populate with Table B-Column B values. I should be able to join the tables because Table A-Column C should match Table B-Column C. Both Table A and Table B will update, about monthly but it could scale to more frequently, so an automated ore easily repeatable solution is desired.
I tried an automation that kind of worked in a similar scenario, but the automation won't run. The automation is:
Trigger- at a scheduled time
Action 1- Find records (finds records missing values in Table A.B
Action 2- For every item in list (list is populated in Action 1)
Action 3- Find records in Table B based on condition TableB.C = TableA.C. Both dynamic values.
** Testing this step, the testing says it's successfully but it finds no records. I have tested selected records that, when using the filter function for the linking column value in the other table, the matching record is successfully found**
Action 4- Update record
Table- Table A
Record ID- should come from "current item in list of records"
Field- Table A.B = dynamic value Table B.B from Action 3- comes back as list of TableB.B
This runs successfully, but doesn't do anything.
In my mind, I've done something similar with the script in this post, but the differences are that I want to populated certain cells versus create a new column, and I am not trying to create a table link. So I guess it's not that similar. But it does seem like, if I get desperate, I can use this to create a linking field, then manually bring in and update the column where needed.
Thanks for reading!!