GetDuplicates

Description

Returns links to the immediate duplicates of this object.

This method returns only immediate duplicates; it does not return duplicates of duplicates. To return all of the duplicates for a given Entity object, including duplicates of duplicates, call the GetAllDuplicates method.

Syntax

Perl


$entity->GetDuplicates(); 
Identifier
Description
entity
An Entity object representing a user data record. Inside a hook, if you omit this part of the syntax, the Entity object corresponding to the current data record is assumed.
Return value
A Links Object collection is returned.

Example

Perl


$dups = $entity->GetDuplicates();



# Find out how many duplicates there

# are so the for loop can iterate them 

$numdups = $dups->Count();



for ($x = 0; $x < $numdups ; $x++)

   {

   $dupvar = $dups->Item($x);

   $childentity = $dupvar->GetChildEntity();

   }