Melissa Express Entry Sample App: Install, Configure and Test

Melissa - Configuration

The Melissa Express Entry sample app is a ready-to-import example of Address Validation for Dataverse configured with Melissa Express Entry. It shows the Melissa Express Entry autocomplete control on Account and Contact forms, including building, organization, dependent locality and the ISO 3166-2 country subdivision code, and two Power Automate flows that check each address with Melissa Global Address Verification. Use it to try Melissa Express Entry in a few minutes, and as a reference when you configure your own forms.

The sample contains no API keys: you bring your own key, and the sample's Setup page stores it in your environment. Download it from the SharpXRM sample apps repository on GitHub.

What the sample contains

ComponentDetails
SolutionSharpXrmSampleMelissaExpressEntry, publisher SharpXRM Samples (prefix sxs)
AppMelissa Express Entry Address Sample: a model-driven app with a Setup page, Accounts and Contacts
FormsAccount and Contact main forms and quick create forms with the Melissa Data Express Entry Autocomplete control on the address search box, the standard address columns it fills, and a column for every extra output of the control
ColumnsSample columns named sxs_ee_* on Account and Contact, so samples never collide with each other or with your own columns
Setup pageSaves your key in the API Configuration SharpXrmSample_MelissaExpressEntry, validates it and shows your license status
Power Automate flowsVerify account address with Melissa Express Entry (sample) and Verify contact address with Melissa Express Entry (sample), which verify each new or changed address with Melissa Global Address Verification, write the verified address back and add a note
Connection referenceMelissa Express Entry sample - Dataverse (Microsoft Dataverse), used by the flows

Before you start

  • Address Validation for Dataverse installed and licensed in the environment. A trial license works, but it must cover Melissa Express Entry. See Download and Install Address Validation for Dataverse.
  • Address Validation for Dataverse 3.0.0.18 or later (it includes Express Entry control 0.2.0, which adds the Country Subdivision Code output).
  • A System Administrator or System Customizer to import the solution, and a System Administrator or SharpXRM - Address Validation Administrator to run the Setup page.
  • A Melissa license key (see step 1).

Step 1: Get your Melissa Express Entry key

  1. Get a Melissa license key from Melissa.
  2. Make sure it has credits for Global Express Entry (the autocomplete control) and Global Address Verification (the verification flows).

For more details, see Setup your Melissa API Key.

Step 2: Install the sample

  1. Download the managed solution: SharpXrmSampleMelissaExpressEntry_1_0_0_0_managed.zip. To change the sample (for example the forms or the control settings), use the unmanaged solution instead: SharpXrmSampleMelissaExpressEntry_1_0_0_0.zip.
  2. In the Power Apps Maker Portal, select your environment, then go to Solutions > Import solution and import the zip file.
  3. When asked for the connection reference Melissa Express Entry sample - Dataverse, select or create a Microsoft Dataverse connection. The flows are turned on when the import completes.

Step 3: Configure the sample

  1. Open the Melissa Express Entry Address Sample app. It opens on the Setup page, which shows the status of Address Validation, your license, the API configuration and the verification flows.
  2. In 1. Enter your API key, enter your Melissa license key and select Save and validate. The page creates or updates the API Configuration SharpXrmSample_MelissaExpressEntry and checks the key with Melissa Express Entry.
  3. Check that the status lines are green. If a form was already open, refresh the browser tab (F5): the controls keep their configuration in the browser.

Step 4: Test address autocomplete

  1. On the Setup page, select New sample account or New sample contact. Quick create account and Quick create contact open the same control on the quick create forms, which + New also uses in the app.
  2. Start typing a street address in Address search and pick a suggestion. Try: 799 Greenwich St, New York. Open the building row that lists several addresses to pick a unit.
  3. The standard address columns and the provider's extra outputs fill in. Save the record to keep them.

The control on the sample forms opens with United States selected (Default Country = US) and lists the United States, Canada, Mexico and the United Kingdom first (Top Countries = US,CA,MX,GB).

Step 5: Test background verification

A few seconds after you save a record, the sample flow for that table:

  1. verifies the address with Melissa Global Address Verification (action sharpxrm_GlobalPersonator) through the Microsoft Dataverse connector,
  2. writes the verified address back to the standard address columns (street, unit, city, county, state, ZIP or postal code, country, latitude and longitude),
  3. adds a note with every value returned, the address that was sent, what was written back and the full response.

Refresh the form to see the note in the Notes section. While a check is running, the Last Verified Address sample column reads PENDING.

The flows use the same Melissa license key. When you save it, the Setup page also creates the API Configuration SharpXrmSample_MelissaExpressEntry_Verify (Melissa Global Address Verification) and the Field Mappings SharpXrmSample_MelissaExpressEntry_account and SharpXrmSample_MelissaExpressEntry_contact that the flows use. You can review the Melissa blocking result codes on those Field Mappings. Each address change uses Melissa Global Address Verification credits.

The flows only act on records whose address was picked with this sample's control (the sample Full Address column is filled), so they never change your other Accounts and Contacts. They also skip their own updates. Use them as a starting point for your own flows; see the related articles below.

What the forms show

Control outputColumn on Account and ContactType
streetStreet 1 (address1_line1)Standard column
unitNumberStreet 2 (address1_line2)Standard column
cityCity (address1_city)Standard column
countyCounty (address1_county)Standard column
stateState/Province (address1_stateorprovince)Standard column
zipZIP/Postal Code (address1_postalcode)Standard column
countryCountry/Region (address1_country)Standard column
latitudeLatitude (address1_latitude)Standard column
longitudeLongitude (address1_longitude)Standard column
fullAddressFull Address (sxs_ee_fulladdress)Sample column
buildingBuilding (sxs_ee_building)Sample column
organizationOrganization (sxs_ee_organization)Sample column
dependentLocalityDependent Locality (sxs_ee_dependentlocality)Sample column
subdivisionCodeCountry Subdivision Code (ISO 3166-2) (sxs_ee_subdivisioncode)Sample column
(verification flows)Last Verified Address (sxs_ee_verifiedaddress)Sample column

Use the sample with other users

  1. Share the Melissa Express Entry Address Sample app with their security role (Power Apps > Apps > ... > Share).
  2. Make sure their roles can read Accounts and Contacts, and give them the SharpXRM - Address Validation User role so the control can read its configuration. See Assign privileges for users.

Remove the sample

Delete the SharpXrmSampleMelissaExpressEntry solution from Solutions. This removes the app, forms, Setup page, columns and flows. The API Configuration records the Setup page created and the two Field Mappings are kept; delete them from the Address Validation for Power Apps app if you no longer need them. Several samples can be installed side by side.

Troubleshooting

What you seeWhat to do
Setup page: Address Validation for D365 is not installedInstall Address Validation for Dataverse first, then reopen the app.
Setup page: license messageOpen the Address Validation for Power Apps app to start a trial or activate your license. The license must cover Melissa Express Entry.
Setup page: saved, but it could not be validatedCheck the key and the notes shown on the page.
The form shows the address box but no suggestionsRefresh the browser tab (F5) so the control reloads its configuration.
The control shows a license message instead of the address boxThe license is missing, expired, or does not include Melissa Express Entry.
No note appears after savingCheck the Verification flows line on the Setup page: the flows must be on and their connection set. The flows only act when the address was picked with the sample's control. Open the flow in Power Automate to see its run history.
A note says Address verification failedThe note includes the details. Usually the verification key is missing or invalid (run the Setup page again), or the license does not cover the provider.
The Country Subdivision Code column stays emptyUpgrade Address Validation for Dataverse to 3.0.0.18 or later.
A verification note says the address was not verifiedMelissa returned a blocking result code, so the address was not overwritten. See

Was this article helpful?