May 02, 2024 01:05 PM
let table = base.getTable("Orders"); let field = table.getField('Order Info'); let record = await input.recordAsync('Choose a record', table);
I know that if I make this script, I can press the button and then select the record to run the automation.
But what I wanted was to press the button and the script would already get the record without me choosing it.
Is there any way of doing this?
Solved! Go to Solution.
May 03, 2024 11:46 PM
May 02, 2024 01:48 PM
Create a button field in a data grid view and configure the button field to run the script.
Then run the script from the button field in a data grid view (not an interface or shared view).
May 03, 2024 04:53 AM
I'm doing this, but how can I make the script get the record that I pressed the button? What i need to do in the script?
May 03, 2024 11:46 PM
May 06, 2024 11:00 AM
I've seen it, but when I make this script I still have to choose a record after pressing the button.
May 06, 2024 11:46 AM
I was dumb, it worked now using what you said. Thanks hahahha