Omnistudio

Edited

Overview

The Autoaddress Capture Omnistudio package brings Autoaddress address search to your OmniScripts. Users start typing and select their address, and your OmniScript's address fields are filled in automatically.

This guide covers installing the package, adding the component to an OmniScript, mapping its fields and testing it.

Before you start

  • Install the base Salesforce plugin first. The OmniStudio package requires the Autoaddress Address Capture plugin, which must already be installed and connected to your Autoaddress account. Follow the Salesforce install guide before continuing.

  • You need to be a System Administrator in a Salesforce org with the OmniStudio package installed (minimum version: 264.11.0-1).

  • Use the Autoaddress OmniStudio package install link: install the Autoaddress OmniStudio package.

Step 1 – Install the OmniStudio package

  1. Open the OmniStudio package install link and log in to your Salesforce org.

  2. On the Install Autoaddress Capture Omnistudio screen, select Install for All Users.

  3. Click Install. Click Done when the installation completes.

  4. To confirm, go to Setup, search for Installed Packages in Quick Find and check that Autoaddress Address Capture Omnistudio is listed.

Step 2 – Add Autoaddress Component to OmniScript

  1. Click the App Launcher (grid icon), type OmniStudio and open the OmniStudio app.

  2. Open the OmniScript you want to add address capture to or create a new one. The OmniScript Designer opens.

  3. In the Elements panel on the left, scroll to the Input section and find Custom LWC.

  4. Drag Custom LWC into your page, above the address fields. It is added with the name CustomLWC1.

  5. With the new element selected, the Custom LWC Properties panel opens on the right. Click in Lightning Web Component Name and select autoaddressCaptureOmnistudio from the list.

Step 4 – Map the address to your OmniScript fields

Next, tell the component which OmniScript fields to fill by adding properties to it.

  1. In the Custom LWC Properties panel, expand Custom Lightning Web Component Properties.

  2. Click Add Property. Enter the Property Name, then click in Property Source and select the matching OmniScript field from the list.

  3. Repeat for each address field.

The full list of fields available from the Autoaddress service are listed below. The fields used should match your address form.

Property Name

Description

line1-field

Address line 1

line2-field

Address line 2

line3-field

Address line 3

line4-field

Address line 4

city-field

city/Town/Locality etc.

region-field

Region

postcode-field

Postcode/Eircode/Zip code etc.

country-field

Full Country Name

countryIso-field

Two character ISO country code

Step 5 – Test it in Preview

  1. Click Preview at the top right of the OmniScript Designer.

  2. The page will show a Country selector and an Autoaddress search box above your address fields.

  3. Start typing an address.

  4. Select the correct address from the suggestions.

  5. The mapped fields are filled in with the selected address.

To check the data, open the Debug panel and look at the Data JSON tab. As well as your mapped fields, the full selected address is stored under the Custom LWC element's name (for example CustomLWC1) with the keys organization, line1 to line4, city, region, postcode, country and countryIso.

When you are happy with the result, click Activate to make the OmniScript version live.