I have a project where on a single spreadsheet, I'll have some sort of an array like this for every row.
[username, dropdown option, website, dropdown option, button to trigger a script, returnValueByScript1, returnValueByScript2]
So there's a script on the google spreadsheet that has to read 2 values, then proceed to call a API that returns some stuff, make some calculations on that stuff then return 2 values to the array (returnValueByScript1, returnValueByScript2).
The core of the script I've completed successfully, now I need to know if its possible from google spreadsheets to have multiple rows of the same type of arrays (for instance [A2,B2,C2,D2,E2,F2,G2],[A3,B3,C3,D3,E3,F3,G3] and so on) to have some kind of a button that triggers the script and the script detects the row where it was triggered and reads the arguments from the cells of the respective row and exports the arguments to the cells of the respective row. For instance I trigger something on E5, script knows I triggered from row 5, reads C5, D5, does some stuff then writes on F5,G5.
If it's possible what type of functions should I look for.