Hello BD users,
I am trying to write a script and I am having problem and wondering if anyone can provide advise on how to accomplish the following tasks:
1. I would like to find duplicate records within the same folder (folder name = Contacts) based on the following fields:
First name, last name, address and email address see example below:
ID, First name, last name, address, city, email
Record # 1 - 123, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record # 2 - 234, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record # 3 - 567, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record # 4 - 234, John, Smith, 200 any street name, any city,
johns@johnsmith.com
Based on the above criteria, identify John Smith as a duplicate record & replace his ID numbers as shown below:
Record# 1 - 123, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record# 1 - 123, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record# 1 - 123, John, Smith, 100 any street name, any city,
johns@johnsmith.com
2. Now move the duplicate records to another folder (folder name=duplicate records). The end result should as follows:
Record # 2 - 234, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Record # 3 - 567, John, Smith, 100 any street name, any city,
johns@johnsmith.com
Thank you in advance for helping on this task.