Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Input scripting

Topic Labels: Scripting extentions
540 3
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello,

as far as I understood I cannot pass an input when I call a script.
Am I right ?
I have a table A with 3 fields id, name, description
I have a table B with 3 fields name, id (link with the table A) and single select (template, todo …)

Each time there is a new record in A I want to create records in B with b.id = a.id for each record b.template. for those records the single select will not be template but todo.

I hope it is clear :frowning:
Thanks for your help
Alex

3 Replies 3

No. This is an incorrect assumption.

Calling script from a button (for example) will pass the record ID by default if – and only if – the script is prepared to receive it as an input like this:

let record = await input.recordAsync('Pick a record', table);

This is ideal since it allows you to fire the script without input and also with input should the occasion arise.

Hello @Bill.French,
thanks for your answer. I tried and it is perfect thanks.

I have another quick question.
I want to create a record in a table, but one of the fields is a link to another table.

I tried to format it but I did not manage.

can you help me with this please ?

Thanks

thanks for make a good solution
that works
roomme,best regards