2 Replies Latest reply on May 25, 2017 11:38 PM by DrizztLU

    Loop through linked records to create another child record

    pbeard Rookie

      Hello fellow HEAT developers, I'm looking for a way to loop through a set of linked records on a change, and for each child record linked, I want to create another child record ( different relationship) based on values from the linked record in relationship 1.

      This process is to support dynamic checklist items. So I have a validation object that has all of the checklist items. Then when a change is created, all the applicable checklist items are linked. They are simply linked for the purpose of a template. I then need to find a way to loop through all of those linked items, and create a record (Checklist Action Items) for each linked template item,  pulling pieces of data and populating on the new checklist items record.