Skip to main content

I have a Parent object that has a related object, that could have multiple records.

Parent has a checkbox called "Updated".

Child has a checkbox called "Updated"

Child records "Updated" field is manually checked once record is updated.

Once all child records are updated, I would like the "Updated" checkbox on the Parent to be automatically checked.

The child records could be one record or multiple records.

 

I'm struggling with how to accomplish this in flow, since I am new-ish to using flows.

 

Any advice or video trainings suggested are welcome.

2 respostas
  1. 12 de abr. de 2023, 06:52

    hi @Pam Martin -

     

    1. Create a record Triggered flow on Child Object

    Trigger when a record is created or updated

    Optimize the flow for Actions and related Records

     

    2. Get Records

    Name : Get_Related_Child

    Object : Child

    Conditions:

    Parent__r.id equals {!$Record.Parent__r.Id} AND

    Checkbox__c equals {!$GlobalConstant.True}

    How Many Records to Store : Only the first record

    How to Store Record Data: Automatically store all fields

     

    3. Add a decision to check if Get Records returned a null value - This means there are no records with CHild checkbox set to false and all children have been marked with True.

    {!Get_Related_Child}  equals {!$GlobalConstant.True}

     

    4.If the above decision outcome is executed, Use update records to update related Parent  checkbox field to True 

    How to Find Records to Update and Set Their Values

    Specify conditions to identify records, and set fields individually

     

    Update record of Object : Parent

    Filter: Id equals {!$Record.Parent__r.id}

     

    Set Field Values for the Parent Records

    Checkbox__c equals {!$GlobalConstant.True}