Mar 18, 2020 03:58 PM
I’m routinely linking a record from another table to match text in another field. Is there a way to do this fast/automatically?
For example, we have an Invoices table, with data that we import from our invoicing software, Harvest. From the imported data, we have a text field with client names. We then link the client names in a linked record field to client records, which live in another table. One of us has to do this manually, each month. Is there a way to use a formula or some other function to return a record from another table if it matches the text in another field or return something like '[NO MATCH]" if there’s no matching record in the other table.
Mar 18, 2020 08:42 PM
Do the client names match exactly? If so, you can copy and paste from a text field into a linked record field, and the link is created automatically.
You could also look into the Batch Update block or the scripting block.
Mar 19, 2020 09:48 AM
Great idea! The client names will mostly match exactly, but–if they don’t–I’d like to avoid automatically creating a new record in the other table and somehow call out “No Match” or something like that. Any suggestions?
Mar 19, 2020 09:53 AM
That’s where a script in the Scripting block would come in really handy. It could check for exact matches and make links where they’re found, and provide some alternate notice if not.
Mar 19, 2020 09:58 AM
Adapt one of the existing matching scripts recently written for this contest, which has built-in logic for matching close-but-not-exact matches. One is by @JonathanBowen and the other is by @Jeremy_Oglesby.
These scripts are entries in a contest that is currently being judged, and I believe that community usefulness is part of the judging, so if you find them helpful, please indicate so on the contest page. (I’m hurting my own changes at winning the contest by promoting other entries, but I believe that great work deserves to be recognized.)
Mar 19, 2020 10:19 AM
:point_up_2: Brilliant! This will probably do it for us. (Also, sounds like it would be in my best interest to get Pro plan and some scripting chops.