function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karleen MendozaKarleen Mendoza 

Flow not clearing out value?

Hi all, 
I have a Flow that I created to update a field on the Account object based if a checkbox is checked on another object. In testing, it seems that the collection variable is not clearing??

Here's my flow:
User-added image
And the PB workflow to launch the flow has the criteria of:
Primary Contact Checkbox Is changed = TRUE

So the requirement is:
If Contact A has Primary Contact checked, Account field should display Info from Contact A.
If Primary contact checkbox is False and changed to true for Contact B, account field should display info from Contact B.
and Vice-versa. Basically, if the account field should display only the info from the primary contact of the account.

Tiago Armando CoelhoTiago Armando Coelho
If your request is related to contacts why don't create this process builder on contact object and triggered them when the field Primary Contact is changed?
Karleen MendozaKarleen Mendoza
Little more complicated than that. We have a junction object called account/contact relationship because we have contacts that need to be related to multiple companies. The checkbox is on the junction object.