Forum Discussion

JoshuaCase's avatar
JoshuaCase
Qrew Cadet
4 years ago

Creating multiple child records based on a # field in the parent

Hello Community! 

Okay so I am looking to set up a system where once a new record gets created in a parent table that includes a numeric field in the record, it will create "X" number of child records equal to the value listed in the numeric field ID.  Is this possible?

I am sorry if my description makes no sense.  An example is below.

Contract Record is Created (Parent Table) with a field in the form that is titled "# of related contract amendments" and say that field is equal to 6.  We would want 6 records created in a child table related back to the parent. 

What is the best way to do this?  Pipeline?  Automation?  I am just not sure how to get the # of related records created to equal exactly what the user inputs into the numeric field within the parent record.

Any help is appreciated!​

------------------------------
Joshua Case
------------------------------

6 Replies

  • There are multiple solutions.  What is the most # of records you would possibly need to create as that would affect my suggested solution..

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • JoshuaCase's avatar
      JoshuaCase
      Qrew Cadet
      Let's say at worst 29.

      ------------------------------
      Joshua Case
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        The low tech solution would be to have an Automation to create 30 or if you like 49 children.  Each Action in the Automation will populate a field with the child number, from 1 to 30.  You can copy Actions, so it's not too painful to set up.

        Then lookup the # children required from, the parent to the children, and add a last step to delete children when their counter # is greater than the # of children required.

        There are fancier methods which are a bit harder to setup which would have a better user experience as the children would get created quicker, but this low tech method could be good enough.  ​​​

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------