what are you trying to accomplish? for this type of feature i generally have a computed column in airtable using record_id(). You can probably compose the stacker URL using that as well.
d
dazzling-battery-14948
11/05/2021, 7:50 PM
@rapid-state-99797 I have a javascript page that loads in the iframe that allows my team to look up a Google My Business record from a list of the pages we manage. They select the corresponding GMB record from the table and click save, and I want to be able to pass over the record id from the record the user is viewing in Stacker, but since the javascript file is hosted on our company server, I'm getting an error from Chrome when I try to access the current URL from the embedded code. (see screenshot)
Here's a Loom explaining.
r
rapid-state-99797
11/05/2021, 8:56 PM
hmm two thoughts: stacker folks can probably install a script on your installation, maybe that could do it? secondly, would it be possible to pass the record info into the URL for GMB? I'm not familiar with it, but if you could then you can use airtable formulas to pre-construct the GMB url such that the resultant embed only brings up the related business
d
dazzling-battery-14948
11/05/2021, 10:08 PM
@rapid-state-99797 Good thoughts. Thank you! I'll reach out to Stacker about installing the script. The info we're looking up from GMB is only accessible via Google's API. I can't get to it publicly which is why we're querying the pages that we manage to then pull the location id's. I don't know of any other way to get at the data.