Validate Addresses with PostGrid in Dataverse Workflows

PostGrid - Configuration

Address Validation for Dataverse includes two classic workflow steps that verify addresses with PostGrid. Use them to verify addresses in the background, for example when a record is created or updated by an integration or a portal. To use PostGrid from Power Automate instead, see Validate Addresses with Power Automate: PostGrid (Unbound Action).

Workflow stepPostGrid productUse for
Verify with PostGridUS / Canada address verificationAddresses in the United States and Canada
Verify with PostGrid InternationalInternational address verificationAddresses in every other country

PostGrid sells these as two separate products with their own results and billing, so they are two steps. Use a condition on the country to send each address to the right step.

Before you start

  • An Address Validation license that includes the PostGrid add-on.
  • An API Configuration record with Validation Service Type PostGrid API that holds your PostGrid secret key (live_sk_). The steps run on the server, where a public key is rejected. See Set up your PostGrid API Keys.

Create the workflow

  1. In the Power Apps Maker Portal, open the solution where you want to include the workflow.
  2. Select New > Automation > Process > Workflow. Enter a name, select the table where the address columns are located (for example, Contact) and select Create.
  3. Add a Check Condition that tests whether the country is the United States or Canada (for example, Address 1: Country/Region equals US, USA, United States, CA or Canada).
  4. In the condition's branch for the US and Canada, select Add Step > Address Validation > Verify with PostGrid. In the Otherwise branch, add Verify with PostGrid International.
  5. Select Set Properties on each step and fill in the inputs below.
  6. Add the steps that use the result, for example an Update Record step that writes the verified address when the address is deliverable (see Decide whether to update the record).
  7. Save and activate the workflow.

Inputs

InputRequiredWhat to enter
API ConfigurationYesThe API Configuration record that holds the PostGrid secret key (for example, PostGrid Verify).
Input Street AddressYesHouse number and street.
Input Unit NumberRecommendedApartment, suite or unit. Buildings with several units are only deliverable when the unit is supplied.
Input CityRecommendedCity. Supply at least the city and state, or the postal code.
Input State/ProvinceRecommendedState, province or region.
Input Zip/Postal CodeOptionalZIP or postal code.
Input CountyOptionalCounty.
Input CountryYesCountry name or ISO code (for example US, CA, GB).
Include Geocoding (uses an extra lookup)OptionalNo by default. Yes returns latitude and longitude, but uses one extra PostGrid lookup per call. PostGrid must also enable geocoding on your account.

Outputs

OutputDescription
Result FoundSuccess whenever PostGrid returned a usable standardized address, including addresses that are correct but not yet deliverable (for example, missing a suite number). Failed only when nothing usable came back.
Verification StatusThe exact verdict: Verified, Corrected, MissingSecondary, Unverified, Insufficient or Unknown.
Missing ComponentsWhat is missing, for example Suite identifier.
Verification DetailsA readable explanation, including PostGrid's corrections.
Confidence LevelVERY HIGH, HIGH, MEDIUM or LOW.
Street Address, Unit Number, City, State/Province, Zip/Postal Code, CountyThe standardized address components.
Extended Zip/Postal CodeZIP+4 for US addresses (Verify with PostGrid only). The international product returns the full postal code in Zip/Postal Code.
CountryThe two-letter ISO country code (for example US), not the country name.
Full AddressThe complete formatted address.
Latitude, LongitudeOnly when Include Geocoding is Yes and geocoding is enabled on your PostGrid account. Otherwise 0.
Entity TypeRESIDENTIAL or BUSINESS when PostGrid reports it.
Verification StatusResult FoundConfidenceMeaning
VerifiedSuccessVERY HIGHDeliverable as supplied.
CorrectedSuccessHIGHDeliverable after PostGrid corrected it.
MissingSecondarySuccessHIGHThe address is correct but needs a unit or suite. Internationally, it was matched but not down to building level.
UnverifiedFailedLOWCould not be matched.
InsufficientFailedLOWNot enough input to identify an address.

Decide whether to update the record

The PostGrid steps do not update any record; your workflow decides what to do with the result. A safe rule is to overwrite the address only when Verification Status is Verified or Corrected. A MissingSecondary result is a good trigger to ask the user for the missing unit, because the rest of the address is already correct. The country is returned as an ISO code (for example US); if you prefer to keep the country name, leave the country column out of the update.

Costs and limits

  • Each verification uses one PostGrid lookup, plus one more when geocoding is requested.
  • PostGrid limits address requests to 5 per second for your whole organization. Avoid running large numbers of these workflows at the same time.

Troubleshooting

SymptomWhat to check
There is a problem with the product licence. Please contact the administrator.The Address Validation license has expired or does not include the PostGrid add-on.
PostGrid rejected this API key because of its allowed-origins restrictionThe API Configuration holds a public key. Use the secret key.
HTTP 403 without an origin messageYour PostGrid lookups are used up. Check your balance in the PostGrid dashboard.
HTTP 429PostGrid's rate limit was reached. Retry later, or run fewer workflows at once.
A non-North-American address returns nothingIt was sent to Verify with PostGrid. Check the country condition.
No coordinatesInclude Geocoding is No, or geocoding is not enabled on your PostGrid account.

Was this article helpful?