cancel
Showing results for 
Search instead for 
Did you mean: 

How to check duplication check on both category ie Organization & Person at same time?

ghanshyam_kamani
Explorer
0 Kudos

Dear Expert,

Requirement is to check duplication check on creation of account but duplication check includes both category i.e. 1(person) OR 2(Organization)

As of now, duplication check works on single business partner category, either 2(Account) or 1 (Person) using standard action "CheckForDuplicates()"

I have already tried passing both category but always check happens on one category only 😞

Thanks,

Ghanshyam

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ghanshyam,

How do you call the DuplicateCheck?

Bye,
. Horst

ghanshyam_kamani
Explorer
0 Kudos

Dear Hosrt,

First created Customer instance using CUSTOMER BO with category 1 (Individual person),then used "CheckForDuplicates" action to check duplicates.

While using action, have passed indicators "SearchForPersonsIndicator" & "SearchForOrganisationsIndicator".

I can't use BusinessPartner BO here as "CheckForDuplicate" action has not been released yet.

Expectation is to fetch duplicate records irrespective of partner category. result should contain both category records.

Please help.

//DUplicate check indicator
	var ConsumerContextBusinessPartnerTypeCode : BusinessObjectTypeCode;
	ConsumerContextBusinessPartnerTypeCode = "159";
	var ConsumerContextBusinessCharacterCode : BUSINESSPARTNER_PartyBusinessCharacterCode;
	var SearchForPersonsIndicator : Indicator;
	SearchForPersonsIndicator = true;
	var SearchForOrganisationsIndicator : Indicator;
	SearchForOrganisationsIndicator = true;
	var SearchOnlyForActiveBusinessPartnerIndicator : Indicator;
	SearchOnlyForActiveBusinessPartnerIndicator = true;


	//Check for duplicate
	newCustomer.CheckForDuplicates(ConsumerContextBusinessPartnerTypeCode, ConsumerContextBusinessCharacterCode, SearchForPersonsIndicator, SearchForOrganisationsIndicator, SearchOnlyForActiveBusinessPartnerIndicator);


//Fetch duplicate records
var dupAccounts = newCustomer.BusinessPartnerDuplicateCheck;


<br>
HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ghanshyam,

I've asked the BusinessPartner colleagues to look into your issue.

Bye,
. Horst

0 Kudos

Hello Ghanshyam,

regarding the problem you describe I would need to clarify the following:

1) The target is to perform the duplicate check only within customers of type Individual customer + Corporate Account right?

If not this might be a request to PSM Release the action also on BO BusinessPartner.

2) You state that both indicators are set to true but still the search is not performed in both categories:

Can we reproduce this in a system so that I can see how the action is called?

I know that before 1708 there was a default for these indicators set to true that lead to unwanted side effects if the indicator was not specified - Now I would expect that only those Categories are considered where the corresponding indicator is set to true.

Best regards,

Holger.