How to Pull Shipping Address from NPSP Household to Contact Record as Well

The Non-Profit Success Pack has some Apex code that pulls the billing address from Households to associated Contacts. This week I was assigned the task of pulling the shipping address to Contacts as well. Since it’s a managed package that code can’t be modified so I had to find another option.

I consulted with my father and brother (both of whom work with Salesforce). We determined that Workflow rules were inappropriate because they can’t be used to update fields in child records. Formulas weren’t appropriate either. Flows and Process Builder were the remaining options. Process Builder being simpler to set up we determined that it was the best course of action.

So here’s how you do it.

  1. Create a checkbox in Contact called “override automatic flow”
  2. Start a new flow in Process Builder.
  3. Give it an appropriate name.
  4. Choose Account as the Object.
  5. Select “when a record is created or edited”.
  6. Go to Criteria and give it a name.
  7. Select Conditions are met.
  8. Set a condition as [Account].RecordType.DeveloperName = String = HH_Account
  9. Open an Action Group that updates a field. Give it a name.
  10. Choose Contacts as a record to update.
  11. Filter the record based Override Automatic Flow being the Boolean value false.
  12. Set the fields you wish to update. Essentially this will be Other City, Reference, [Account].ShippingCity et cetera.
  13. Activate the flow.

process builder

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s