Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Feb 09, 2021 06:39 AM
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
Feb 09, 2021 01:21 PM
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.
Feb 10, 2021 03:18 AM
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
Feb 23, 2021 09:02 PM
thanks for make a good solution
that works
roomme,best regards