Help

How can i get a record from button press without choosing the record?

Topic Labels: Automations Extensions
Solved
Jump to Solution
210 5
cancel
Showing results for 
Search instead for 
Did you mean: 
Guics
5 - Automation Enthusiast
5 - Automation Enthusiast
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?

1 Solution

Accepted Solutions
5 Replies 5

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).

Guics
5 - Automation Enthusiast
5 - Automation Enthusiast

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?

Alexey_Gusev_0-1714805192721.png

 

I've seen it, but when I make this script I still have to choose a record after pressing the button.

Guics
5 - Automation Enthusiast
5 - Automation Enthusiast

I was dumb, it worked now using what you said. Thanks hahahha