Help

Re: Identify the record associated to a button used to open a custom extension

Solved
Jump to Solution
1942 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Rapha
4 - Data Explorer
4 - Data Explorer

Hello,

I’m trying to develop a custom extension, but I’m facing an issue.
I’ve defined a button associated with action “Open Custom Extension” that points to my custom extension.
However in both case, I’m unable to retrieve the recordId of the line of the clicked button:

  • When extension panel is closed
  • When extension panel is opened

I’m trying to retrieve the “selectedRecordIds” but upon a button click, it remains empty…
Is it possible to retrieve this?
Is it possible for the custom extension, that the source event is a click on a button?

Thanks,
Raphael

1 Solution

Accepted Solutions

Correct. I usually create a formula field in the table that generates the record action data so that I can copy/paste the value into the Advanced panel for testing.

See Solution in Thread

3 Replies 3

Welcome to the Airtable community.

You can get the triggering button using the recordActionData. This is different from the selectedRecordIds.

Hello @kuovonne, thank you for the quick answer.

If I understand the documentation well, it’s not possible to test the button in development mode but only when the app is released.
To test the useRecordActionData hook in a development mode, the Perform record action within the Advanced panel.
So the button actually fires no trigger in development mode, is that correct?

Thanks,
Raphael

Correct. I usually create a formula field in the table that generates the record action data so that I can copy/paste the value into the Advanced panel for testing.