CCH® SureAddress™ for D365 Finance & Operations User Guide
Updated: June 18, 2024
Installing CCH SureAddress
Overview
CCH SureAddress for Microsoft Dynamics 365 for Finance and Operations is a plug-in that integrates CCH SureAddress solution with Microsoft Dynamics 365 for Finance and Operations. With CCH SureAddress for Microsoft Dynamics 365 for Finance and Operations, you can validate addresses in the following ways:
- Explicit Address Validation. You can explicitly request address validation for a given address record by clicking the Validate Address button.
- Automatic Address Validation. When automatic address validation is enabled, addresses will be automatically validated whenever an address record is saved.
- Batch Address Validation. The batch address validation form allows you to validate multiple addresses at the same time.
How It Works
When address validation is requested in Dynamics 365 for Finance and Operations, the plug-in sends the address information from Dynamics 365 for Finance and Operations to SureAddress API Web Service. The SureAddress API Web Service is used to validate the address. The validated address is sent back to the plug-in through the SureAddress API Web Service, and the plug-in presents the updated address in the Dynamics 365 for Finance and Operations user interface.
There are four steps to installing and setting up CCH SureAddress for Dynamics 365 for Finance and Operations:
- Import the Model Files
- Importing Licenses
- Building Models and Synchronizing the Database
- Create a Deployment Package
- Deploy and Apply the Package
Importing the Model File
To import the CCHSureAddress for Dynamics 365 for Finance and Operations model file, do the following:
- Get the CCH SureAddress for Dynamics365 ZIP file from CCH.
- On the VM/machine, open the folder where the latest CCH SureAddress for Dynamics365 zip package exists.
- Unzip the model file on your machine.
- Open Command Prompt in Administrator mode and execute the following commands (in this order):
- Note: If you install a model on a development environment that contains customization to that model (in a higher layer), you may need to resolve code or metadata conflicts using Visual Studio.
cd "[path of the metadata store where model should be imported]\Bin" ModelUtil.exe -import -metadatastorepath="[path of the metadata store where model should be imported]" -file="[path where model files are unzipped]\CCH\_SureAddress-CCH Inc..axmodel"
- Note: If you install a model on a development environment that contains customization to that model (in a higher layer), you may need to resolve code or metadata conflicts using Visual Studio.
Importing Licenses
- Get the license file from CCH based on the serial number of AX installed in your development environment. Create a Licenses directory at a location where you want to copy the license files (for example, C:\License). Copy the licenses to the Licenses directory.
- Run the following command to turn on maintenance mode. You should turn on maintenance mode before you import the license files and turn it off after the import is complete.
- Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir " [path of the metadata store]" --bindir "[path of the metadata store]" --sqlserver . --sqldatabase [databasename] --sqluser [User with sysadmin privileges] --sqlpwd [userpwd] --setupmode maintenancemode --isinmaintenancemode true
- Restart the AOS.
- For Address Validation license execute the following on command prompt.
- cd "[path of the metadata store]\bin"
- Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir "[path of the metadata store]" --bindir "[path of the metadata store]" --sqlserver . --sqldatabase [databasename] --sqluser [User with sysadmin privileges] --sqlpwd [userpwd] --licensefilename "[location of License directory][Companyname]_ [SureAddressAVlicense].txt"
- After the license are imported, log in to Microsoft Dynamics and go to System administration > Setup > License configuration.
- Verify all CCH licenses are present and checked.
- Run the following command to turn off maintenance mode once the license files are imported.
- Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir " [path of the metadata store]" --bindir "[path of the metadata store]" --sqlserver . --sqldatabase [databasename] --sqluser [User with sysadmin privileges] --sqlpwd [userpwd] -- setupmode maintenancemode --isinmaintenancemode false
- Restart the AOS.
Building Models and Synchronizing the Database
- Open Visual Studio.
- Click Dynamics AX > Model Management > Refresh models.
- Click Dynamics AX > Build Models. The Full Build dialog displays.
- Select the first check box (Select all) on the packages tab.
- Select the Options tab and select following:
- Build Pre-Compiled Form
- Build Reports
- Synchronize Database
- Build cross reference data
- Click Build and synchronize the database. This can take more than an hour to complete.
- Once the build is complete, restart IIS and SQL server.
Creating the Deployment Package Using Visual Studio
- In Visual Studio, select Dynamics AX > Deploy > Create Deployment Package.
- Select the following packages:
- CCHSureAddress
- Directory
- Provide the package file location in the dialog box.
- Click Create to generate the package. Get the license file from CCH based on the serial number of AX installed in your production environment. Unzip the package. Add license files to unzipped package under the AOSService\Scripts\License folder.
- Zip the package again, now with the license files.
Deploying and Applying the Package to Lifecycle Services
- Log in to lcs.dynamics.com.
- Select the Shared Asset library and do the following:
- Select the Software deployable package asset type.
- Click the plus sign (+) to upload the package.
- Enter the name and description of the package you are uploading.
- Select the uploaded package.
- Click Publish.
- Click the project in Life Cycle Service where the package needs to be installed.
- Click Asset Library. You may need to scroll to the right for this option to be visible.
- In the Asset library, click Import to import the package.
- Return to the project's home screen and select the virtual machine environment.
- Verify the virtual machine is running.
- Click Maintain, and then click Apply updates. A window displays, showing the eleven steps of deployment.
Configuring SureAddress
To configure your CCH SureAddress for Dynamics 365 for Finance and Operations settings, do the following:
- Do one of the following:
- Go to Workspaces > CCH SureAddress Workspace, and then click CCH SureAddress Address Validation Setup.
- Go to Modules > Common > CCH SureAddress tab > CCH SureAddress Address Validation Setup.
- Select General on the left side of the dialog.
- Enter the CCH SureAddress Validation URL, Client Number, and Validation Key.
- Select Address validation settings on the left side of the dialog.
- Set Enable automatic address validation to Yes if you want addresses to be validated any time an address record is saved.
- Set Automatically Accept Address to Yes if you want addresses to be saved immediately after OK is clicked.
- Select the Select country/region to validate tab, and then specify the country or region for which CCH SureAddress should validate addresses. To add a new line for adding another country, click Alt+N
- Select the Address keywords to skip tab, and then specify keywords in street address lines that should be ignored during address validation. Example: Ordinarily, a line that starts with "ATTN:" or "C/O" will cause address validation to fail. If you enter these keywords in the Address keywords to skip tab, those lines will be ignored during validation.
- Click Save.
- Click Import Address Types Description menu to display the address type description in the address form.
Access Levels
CCH SureAddress provides two levels of access: one for Basic Users and one for Power Users.
Power Users have full access to all address validation functionality and plug-in forms, including the following forms:
- Address Validation Settings
- Batch Address Validation
- Individual Address Validation
Basic users have the following access:
- View Only access to the Address Validation Settings form
- Full access to the following address validation functionality and plug-in forms:
- Batch Address Validation
- Individual Address Validation
Validating Addresses
Validating Individual Addresses
To validate an individual address in Dynamics 365 for Finance and Operations, do the following:
- Enter an address on the Microsoft Dynamics 365 for Finance and Operations address form.
- Click Validate Address.
- Select the correct address and click OK.
- Click Save. The validated address is saved.
Batch Validating Addresses
To batch validate multiple addresses, do the following:
- Do one of the following:
- Go to Workspaces > CCH SureAddress Workspace, and then click CCH SureAddress Batch address validation.
- Go to Modules > Common > CCH SureAddress tab > CCH SureAddress Batch Address Validation.
- Click CCH SureAddress Batch address validation.
- Select the addresses you want to validate. You can also select the General tab at the top of the form and click Select All.
- Select Validate.
- Select the General tab and click Validate all modules. The selected addresses are validated for all modules.