Help

BUG - can't load record into app from button in expanded record

Topic Labels: Custom Extensions
1649 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Ronen_Babayoff
7 - App Architect
7 - App Architect

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.

2 Replies 2
Fred_Zhao
Airtable Employee
Airtable Employee

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:

  • Scripting
  • SendGrid

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!

Hey again Fred :-),

Thanks for taking the time. I’m using registerRecordActionDataCallback and am not getting the callback.

Ronen