Pipelines - Repeat Add record X times
Hi All,
I inherited a database and still wrapping my head around pipelines. I am trying to find an efficient way of repeating a task x times (based on a qty field number). The basics are listed below:
Tables - Task, Parts, Assets
Task Table - Where job is generated. User selects The "part number" and Quantity of the part
Parts Table - List of available part # and Part Name
Assets Table - List of assets. Has Related Task #, Related Part #, Related Part Name, Asset Number, Serial Number
A user creates a new Task. They enter the Part # and the Quantity of that part
I want to create new Asset records based on the quantity number entered. e.g. Quantity = 10 equals adding 10 new Asset records.
As the quantity can be many hundreds, I'm looking at an efficient way to creating the multiple records.
I'm thinking I can use a bulk records, but being new I'm still not sure if I need to use a For loop somehow or if there is a better way? It is currently setup as a single pipeline for each record add. i.e. to handle adding 10 assets I have 10 separate pipelines. This is not practical for large quantity adds.
Any assistance would be greatly appreciated. Thanks.
------------------------------
Grant K
------------------------------