Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Aug 02, 2022 04:53 PM
Hey,
This used to work and stopped. Tried it with a new app and button too. Whenever I click an open app button when the record is expanded, it seems that the window message with the record id is not delivered to the app. I get the following error in the console:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://block--t-qtk-d2-z-an-c-dz-kv--b3r294g.alt.airtableblocks.com') does not match the recipient window's origin ('https://airtable.com').
The app DOES open in the extensions dashboard when clicking an app open button from the grid view.
Aug 19, 2022 10:43 AM
Hi Ronen,
Thanks for the report. I tried the analogous interaction (click a Button Field to open an app when a record is expanded) in a few other extensions:
In both of those, the same “Failed to execute ‘postMessage’ on ‘DOMWindow’” error also appeared, but the extensions also did get the record data correctly.
This makes me wonder what the code looks like in your app for receiving the record data, since we have 2 available in the blocks-sdk:
Hope this helps us move along here. Thanks!
Aug 27, 2022 12:16 PM
Hey again Fred :-),
Thanks for taking the time. I’m using registerRecordActionDataCallback and am not getting the callback.
Ronen