Hi @Angel_Baena - there’s two places you can run a script from - the script panel in the scripting app and via a script button on the record:
If the script has a record input line, e.g.:
let record = await input.recordAsync('Please select a order', orders);
then if you run the script from the scripting app, you will be prompted to find and select a record.
However, if you run the script by clicking on the script button for a specific record, the chosen record will be passed through to the script without any further find/select. You don’t need to change the script in any way to allow this - just something built into Airtable when using await input.record