Aug 03, 2022 07:57 AM
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:
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
Solved! Go to Solution.
Aug 04, 2022 05:13 AM
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.
Aug 03, 2022 08:30 AM
Welcome to the Airtable community.
You can get the triggering button using the recordActionData. This is different from the selectedRecordIds.
Aug 04, 2022 01:37 AM
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
Aug 04, 2022 05:13 AM
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.