Help

Re: Get recordId of field when press a fiedl button

Solved
Jump to Solution
2498 1
cancel
Showing results for 
Search instead for 
Did you mean: 
crmepacolombia
4 - Data Explorer
4 - Data Explorer

i have a button field that run a script, i need to get tha field id(recordId) after press the button in the script, in some examples they recommend to use recordAsync(), but i have to chose the record, and i need to get it after press the button

2021-05-26 10_22_11-Window

1 Solution

Accepted Solutions
crmepacolombia
4 - Data Explorer
4 - Data Explorer

Thanks, i finally found the solution, if you need to get the record Id of the field after press a field button use this.

let tableClientes = base.getTable("Clientes");
let record = await input.recordAsync('',tableClientes).catch()
console.log(record.id, record.name);

See Solution in Thread

3 Replies 3
crmepacolombia
4 - Data Explorer
4 - Data Explorer

Thanks, i finally found the solution, if you need to get the record Id of the field after press a field button use this.

let tableClientes = base.getTable("Clientes");
let record = await input.recordAsync('',tableClientes).catch()
console.log(record.id, record.name);

HERO WITHOUT A CAPE. 
Worked, thanks

pdxbug
5 - Automation Enthusiast
5 - Automation Enthusiast

Why is this not in the documentation! @support please fix this