# Integrate Address Validation with Dynamics 365

![Dynamics 365 Browser Extension Demo-screenshot](https://img.ideal-postcodes.co.uk/microsoft-dynamics-demo.gif)

## Features

* Adds UK Address Finder to contact creation and editing

## Screenshots

![Address Autocompletion on the Dynamics 365-screenshot](https://img.ideal-postcodes.co.uk/microsoft-dynamics.png)

## Installation

This integration uses the Ideal Postcodes Extension which can be downloaded from the Chrome or Firefox Extensions marketplaces.

See our [Browser Extension guide](/docs/integrations/browser-extension.md) for more information.

## Custom Fields

The Browser Extension also allows you to bind Address Finder to arbitrary sets of CRM properties defined by you. To do this you will need to map an address field to a Custom Field Name using our JSON configuration editor.

For instance, the config below maps Address Validation for two sets of custom fields.

custom-fields.jsonjson

```json
[
	{
		"line_1": "input[aria-label=\"Address: Street 1\"]",
		"line_2": "input[aria-label=\"Address: Street 2\"]",
		"post_town": "input[aria-label=\"Address: City\"]",
		"postcode": "input[aria-label=\"Address: ZIP/Postal Code\"]",
		"country": "input[aria-label=\"Address: Country/Region\"]",
		"county": "input[aria-label=\"Address: State/Province\"]"
	},
	{
		"line_1": "input[aria-label=\"Line One\"]",
		"line_2": "input[aria-label=\"Line Two\"]",
		"post_town": "input[aria-label=\"City\"]",
		"postcode": "input[aria-label=\"Postcode\"]",
		"county": "input[aria-label=\"Address 1: State/Province\"]"
	}
]
```

The first set of Custom Fields configures address validation for input fields labelled `Address: Street 1`, `Address: Street 2` and `Address: City` and so on. The Address Finder will bind the field labelled Address: Street 1 and populate the other fields defined in the Custom Field set.

The complete list of address fields (e.g. `line_1`, `post_town`, `postcode`) is available in our [data documentation](/docs/data/paf.md).

## Supported Forms

### Supported URL Paths

All paths are supported but limited by address selectors

### Address Field Selectors (Supported Fields)

Contacts

field-selectors.jsonjson

```json
{
	"line_1": "input[aria-label=\"Address 1: Street 1\"]",
	"line_2": "input[aria-label=\"Address 1: Street 2\"]",
	"line_3": "input[aria-label=\"Address 1: Street 3\"]",
	"post_town": "input[aria-label=\"Address 1: City\"]",
	"postcode": "input[aria-label=\"Address 1: ZIP/Postal Code\"]",
	"country": "input[aria-label=\"Address 1: Country/Region\"]",
	"county": "input[aria-label=\"Address 1: State/Province\"]"
}
```

New contact

field-selectors.jsonjson

```json
{
	"line_1": "input[aria-label=\"Street 1\"]",
	"line_2": "input[aria-label=\"Street 2\"]",
	"line_3": "input[aria-label=\"Street 3\"]",
	"post_town": "input[aria-label=\"City\"]",
	"postcode": "input[aria-label=\"ZIP/Postal Code\"]",
	"country": "input[aria-label=\"Country/Region\"]",
	"county": "input[aria-label=\"State/Province\"]"
}
```

info

Still need help? Contact our support team via live chat on our website or email <support@ideal-postcodes.co.uk>.
