GetAllDuplicates

Description

Returns links to all of the duplicates of this Entity, including duplicates of duplicates.

This method returns all duplicates, including duplicates of duplicates. To obtain only the immediate duplicates of an object, call the GetDuplicates method instead.

Syntax

Perl


$entity->GetAllDuplicates(); 
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


$linkobjs = $entity1->GetAllDuplicates();



# Find out how many duplicates there

# are so the for loop can iterate them 

$numLinks = $linkobjs->Count();



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

   {

   $linkobj = $linkobjs->Item($x);

   $childentity = $linkobj->GetChildEntity();

   }