Skip to main content The new Salesforce certifications experience is live! Visit Trailhead Academy to explore your new certifications homepage.
Hello Community, I am trying to troubleshoot my flow loop but finding it hard to pick out what I'm doing wrong with my assignments as my parent fields are not being correctly updated with the values from the collection of children records. 

 

My loop is a record collection and each record is being assigned to a single record and the assignent has the 'add' operator so that each record in the loop should be added one by one to the last temp variable. 

 

This is being triggered by a Process Builder with the Parent record id being passed to the flow. 

 

Is anyone able to help out?

 

How do I configure my flow loop correctly to compute a rollup sum calculation from all children records on the parent record?
7 answers
Loading
  1. Apr 2, 2020, 3:07 PM
    Hi Aoife - The TempTimeEntry is your loop variable I'm assuming?  And suppose you have queried the fields in the initial collection Get Records (you'd likely get an error if not)?  

     

    In the Debug dialog, what values are you showing on the variables you're assigning to?  You should see them incremented in each iteration of the loop.  

     

    I'm also not seeing where you're assigning this varaible to the parent record SObject variable field that you're updating in the final element.  Are you doing that assignment within that update variable -- can you post screenshot of that?
0/9000