Jul 31, 2020 12:17 PM
Is there a way that I can copy a word or words from a URL in any given record and paste it into another field on the same table? If so, what would that script look like?
I have a table full of records each having their own link to a specific URL (none are the same). Each link opens up a specific record on another database made to match. Within each record in this linked database (which is not airtable btw) is a place called “Contractor or Supplier” about halfway down the page where, directly next to it, is the name of a contractor or supplier. I need to know if there is a way I can have it look in that link, grab the name of the contractor or supplier, and paste that name into a “Link to another record” field within the same table.
Aug 04, 2020 09:12 PM
There’s a small mistake in the terminology which may make it harder for folks to understand your goal.
To get information “from a URL” means to extract data from the location. For example, we could get the value “23” from the URL http://example.com?value=23.
Based on your more extended explanation, though, it’s clear that you actually want to get data from a resource–a web page in this case. That’s the “R” in “URL”, and it’s a little trickier than the “L”.
Scripts in the Scripting Block run in the browser. The web’s default security protections disallow you from doing this directly from a browser, though. There are a few ways to work around this:
Good luck!