cancel
Showing results for 
Search instead for 
Did you mean: 

Matching New records - Without Record ID

former_member206107
Active Participant
0 Kudos

Hi,

Can you help me with this?

I am trying to get a list of matching/duplicate records for a new record which is not added to MDM yet. (ie., no Record ID for the new record)

The RetrieveMatchedRecordsCommand cmd is expecting the source record id.

The RetrieveMatchingResultCommand cmd getmatchingresults returns null (as specified in the java doc). But this command gives me the number of duplicates by getMatchCount() class. If I can get the duplicate records (existing in MDM) also, it solves the purpose.

Have you worked on similar scenario?

Cheers,

Prabhu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prabhu

I am trying to get a list of matching/duplicate records for a new record which is not added to MDM yet. (ie., no Record ID for the new record)

The RetrieveMatchedRecordsCommand cmd is expecting the source record id.

We can use a different API (dont remeber the exact API name) which runs matching strategy in MDM without actually creating a record in MDM and hence no record ID is required.

hope this helps.

best regards

Ravi

Former Member
0 Kudos

Hi Pradhu,

Here are the steps to get the matched records found with API command ExecuteMatchingStrategyForNewRecordValuesCommand

Use RetrieveMatchedRecordsCommand API, and set the source record Id to be -1 (with the method setRecordId()).

This is specified in the API Java doc for RetrieveMatchedRecordsCommand.setRecordId().

RetrieveMatchingResultCommand API is not needed after matching an external record.

Regards

Orit

Answers (2)

Answers (2)

former_member206107
Active Participant
0 Kudos

Thanks Orit.

Copying the required information from your reply for future reference...

1)Outer loop: RetrieveMatchingResultCommand is used to get the source record Ids

2)Inner loop: For each source record at the outer loop, RetrieveMatchedRecordsCommand is used to get the target records and their matching scores.

Cheers,

Prabhu

former_member206107
Active Participant
0 Kudos

Hi Orit,

Wow! That was a perfect solution. Yes, it was mentioned in the document also.

I dont see any business use case/ benifits for RetrieveMatchingResultCommand over RetrieveMatchedRecordsCommand. Can you share some info on this?

Thanks and best regards,

Arun prabhu S

Former Member
0 Kudos

Hi Prabhu,

Thanks for the feedback, I am happy to help !

RetrieveMatchingResultCommand is used when you run matching for multiple source records (already exist in MDM), for iterating through match results of each source record.

Please see farther info at

Regards

Orit