AddressMatch

Estimated reading: 3 minutes 1002 views

This activity enables users to compare two different addresses as input and provides the percentage of similarity.

Properties

INPUT

Address1: *This parameter indicates to provide the first address that needs to be compared. It accepts values in “String” datatype. You can either hardcode the values in “String” format or enter the variable in “String” datatype.

Address2: *This parameter indicates to provide the second address that needs to be compared. It accepts values in “String” datatype. You can either hardcode the values in “String” format or enter the variable in “String” datatype.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False:
 Halt the workflow if it encounters any errors.
None:
 If the option is left blank, the activity will, by default, behave as if “False” were chosen.

Version: It indicates the version of the feature being used.

OUTPUT

MatchPercentage: This parameter helps to view the output of the activity, displaying the “percentage” of the match. It returns the values in a “Double” data type.

* Represents mandatory fields to execute the workflow.

Here’s an example of how the “AddressMatch” activity is used in the workflow.
In the following example, I have two different sample addresses and by using this activity, I am going to compare and retrieve the percentage of similarity.

Example

1. Create a new solution or open an existing solution.
2. Install the latest version of “CognitiveServices” feature from the “ManageFeature”.
3. Now, I am adding the “AddressMatch” activity from the “CognitiveServices” feature and setting it as start node.

a. Navigating to the “Address1” in the properties to provide the first address. Here I am entering the value as “Cecilia Chapman, 711-2880 Nulla St., Mankato Mississippi 96522”.
b. Now, moving to the “Address2” in the properties to provide the second address. Here I am providing the value as “Aaron Hawkins, 5587 Nunc. Avenue, Erie Rhode Island 24975.” 
4. Next, moving to the “MatchPercentage” in the output of the properties to declare a variable to view the output. 
5. Then, adding the “writelog” activity to view the output.
a. Enter the input string as “Output.ToString”.
b. The “.ToString” is advised to use along with any other data types other than string format. It converts any data type into string.
c. Choosing the log level as “Info”. 
6. Now, Execute the activity.

The bot executes the activity and gives the percentage of address match in the output box. Here the match percentage is 0 % as they were two different addresses.

Share this Doc

AddressMatch

Or copy link

CONTENTS