Adding child rows from a specified list of key parent values

Hello,

I have a form where multiple Customers (key values) are selected from an enum list. I’ve tried creating a bot which then adds certain products to these customers-- these products are related rows of the Customers table, located in a separate Products table.

The bot would run a looping action with “add a new row to another table using values from this row”. The crucial value is the Key value of Customer in the product table which relates the two. My question-- is there a way to work off a list of provided keys? In the action bot, “add a new row to another table using values from this row”-- to add the Customer key into the Product’s customer column, normally I’d simply input [Key] as the value to pass on. However, my form contains multiple keys…each of which need a new row in the Products table. So far, I’ve only gotten the action to generate the first key in the enum list.

I’ve created the same looping action for the Customer table that does not use the form or bots, where the user selects multiple customers from a table view and then selects the action. This works just fine and will do the job.
Mostly just curious if the above scenario is possible.

Thanks for any input!

Possible? Probably. Off the top of my head, I’d look at using Data: execute an action on a set of rows with the list of customers as the referenced rows. You could use inputs to feed any needed values down to the action that adds the new rows.

1 Like

I’ve tried this—
I created a looping action for the Customer table where the user selects multiple customers from a table view and then selects the action to add the child products. This works just fine (and I’ll probably just end up utilizing this).

But when running this action from a different table and using the list of chosen companies as the referenced rows for running the action, the action breaks-- it only adds the child products for the very fist company key.

Please post screenshots of the relevant configuration.