Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Fetching Duplicate Records Only

shashanks445952
Level 2
Level 2

I've a use case where I have a table with several duplicate records now I want to fetch only the  duplicate users and delete some fields data for those users only where the data was updated 6 months ago .

 

I use Adobe Campaign Classic.

 

Thanks!!

1 Accepted Solution
ParthaSarathy
Correct answer by
Level 5
Level 5

 Hi @shashanks445952 ,

This workflow logic will help you to solve your use case.

Workflow logic.PNG

1) Query: Fetch all records from your table ( @id not equal to 0)

2) Dedupliction: select 'Generate complement' and in 'Edit configuration' select temporary schema and in next step add the expression to identify the duplicates. For example, if it is recipient schema, you can identify your duplicates by @email. So when you run the workflow, duplicates records will come in complement transition.

3) Split: Here you can add your filtering condition to filter last Modified 6 months ago.

4) Update data: Here you can delete or update those records as per your business logics.

 

Regards,

ParthaSarathy S

 

View solution in original post

2 Replies
ParthaSarathy
Correct answer by
Level 5
Level 5

 Hi @shashanks445952 ,

This workflow logic will help you to solve your use case.

Workflow logic.PNG

1) Query: Fetch all records from your table ( @id not equal to 0)

2) Dedupliction: select 'Generate complement' and in 'Edit configuration' select temporary schema and in next step add the expression to identify the duplicates. For example, if it is recipient schema, you can identify your duplicates by @email. So when you run the workflow, duplicates records will come in complement transition.

3) Split: Here you can add your filtering condition to filter last Modified 6 months ago.

4) Update data: Here you can delete or update those records as per your business logics.

 

Regards,

ParthaSarathy S

 

View solution in original post

ParthaSarathy
Level 5
Level 5

Hi @shashanks445952 ,

By default it will deduplicate randomly. If you need to specify with some condition, you can achieve it in below manner.

recent record.PNG

You can learn more about deduplication from this link. click here - Deduplication

Regards,

ParthaSarathy S