May 02, 2023 05:34 AM
Hello to the community !
I'm coming to you because I'm stuck on my project.
I have a table that contains different columns and the last one is a "Button" that triggers a script.
I would like to get the content of the cell "dossier" in the row of the triggered button.
Row Number | FIRSTNAME | LASTNAME | DOSSIER | BUTTON |
1 | JOHN | DOE | 49 | BUTTON |
2 | MARIA | DOE | 21 | BUTTON |
For instance here, how can I make sure that the script is using the value 49 if I trigger the button of the row 1 ?
I would like to automate this, I don't want the enduser to pick a record manually.
Big thanks for you help,
Maël
May 02, 2023 06:03 AM
You can use a combination of recordAsync and getCellValue within your script to get the effect you want
May 02, 2023 06:32 AM
Thanks for your reply @TheTimeSavingCo ! 🙂
If I'm not mistaken, using recordAsync will make the enduser choose among the records that are within my table, right ?
Is there a way to automatically retrieve the record of the triggered button ?
May 02, 2023 06:53 AM
Yeap, you would use recordAsync with the button. I highly recommend you check out the documentation linked above, and here's the relevant part of the recordAsync section: