Use Case: An Easy Flow To Copy Address Field

This is just an easy example to illustrate the concept of the Address field. The address is a Compound field, which consists of multiple fields. A compound field is read-only so you cannot modify it directly. Instead, you have to modify every single field. Let’s see how to achieve that in Flow.

For more information, check out the developer documentation for Compound Field and Address Compound Field.

Lulu Mobile uses the standard Account object. Some of their customers would have the same Billing and Shipping Address, so they would like to have an Action to copy the Billing address to the Shipping address.

Since we want an Action, we will use a Screen Flow to achieve this.

Even though there is an out-of-the-box feature to copy the billing address, it is only available in the Classic interface. Besides, it only provides one direction – from bIlling to shipping, and it only copies from the same object. With this solution, you can copy the address in any direction. You can also copy the account address to the contact address (or any other objects).

NOTE: We won’t work on the Geocode fields – Geocode accuracy, longitude, and latitude. Check out the Help article to set up the geocodes and data integration rules only if needed.

Flow Chart (deactivate last login date)

Steps (deactivate last login date)

Screen FlowUpdate Records
Record IdAssignment

Does the solution solve your problem? If not, write us what your problem is and we will build the flow for you!

Official Salesforce Help Article On Flow

Subscribe
Notify of
guest

7 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
m t

The flow is failing because the record ID is not populated. You’ve defined a variable for record ID but it isn’t being populated with a value when we follow your steps.

raju

How You Created the flow as an action or a button with flow URL ? You didn’t mention anywhere in this case .

Lilly

Hello! I followed your instructions to a T but I am receiving this error once clicking on the Copy Address button

Screen Shot 2022-07-21 at 11.47.48 AM.png
Andy

Hi, I have basically built a similar flow, but with a querry which will check if the billing address (as target address) is empty. Problem: the querry check seems not to work on field level: I only want to check, if the fields “city” and “street” are blank. How does that work best?

Velma M

Hi Melody,

I am following this and I am getting a WSDL error. The difference between your flow and mine is that I need to use a custom address field. I have two issues occuring but I don’t think solving the first one will solve the second one. First, I cannot access the custom address field State/Province field in the flow. See screenshot. Any idea why I can’t get that?

Second, even if I use the standard address fields (relabeled to tax address) I still get the WSDL error: Error element Copy_Address (FlowAssignment).
Value of class common.api.soap.wsdl.Address is not a ValueType: STRING

Thanks,
Velma

State field not displaying.png