Validate Address - Screen Flow Action

Last published at: 2024-07-18 07:49:49 UTC
Delete

The Screen Flow Action "Validate Address" lets you validate an address in a screen flow.

How to use Validate Address in your flow

Step 1 Add the "Validate Address" Flow Action to your flow

  1. Open the Lightning Flow Builder.
  2. From the Elements section, drag a new screen from the Toolbox onto the canvas.
  3.  At "Label" and "API Name", define a label and an API name for the screen.
  4. From the Screen Components section, scroll down to Custom and drag the "RV - Validate Address" screen component onto the screen.

Step 2 Fill out the fields

  1. At "API Name", define an API name for the screen component. For example "Validate_Address".
  2. "Field API Name" is used for saving the validation results. Populate this field if you want to save the validation results.
  3. At "Country" and "Default Country", fill out the abbreviation of the country you want to use by default. For example, "NL" for "Netherlands" or "US" for "United States". Record Validation needs this information to validate the address in the correct country.
  4. If you have mapped a "House Number" field in RV Setup, set "Show House Number Field" to True. The same goes for "Show House Number Addition Field". If set to False, the house number will be added to the address field.
  5. Optionally, fill out the other fields with variables or fixed values or leave them blank.
  6. Click "Done".

Example of the Validate Address Flow Component

Delete

House Number field of type Number

In the address flow component, the house number field will return text instead of a number. This accommodates for house numbers containing text, such as "6a", if you're not using the house number addition field.

However, if you have the house number field set to type ‘number’ instead of type ‘text’, you can create a formula in the flow with "value(text)" so that you can store the returned text as having the number type, and then use it further in the flow.

Step 3 Connect your screen to the Start trigger

Make sure the screen is connected to the Start trigger.

Step 4 Run the flow

Save the flow, give it a name and click "Run".

While you are filling out the Address field, Record Validation will show some suggestions.

You can click the desired suggestion to fill it out and validate it automatically, or you can fill it out manually and click the "Validate" button to validate the address.

Delete

This Flow Action only validates the input but does not save the result yet. Learn more about how to save the validation results.