Record Query to Include Record Linkages

You can include the record linkages information by using the INCLUDERECORDLINKAGE context variable.

Specify the following context variable in the record query request.
<Context>
<Variable name="INCLUDERECORDLINKAGE" type="boolean">true</Variable>
</Context>
You can query a record by using the record ID or repository name. The response returns the record linkage information for those records which are merged from other records.
Note: The variable name is case-sensitive. By default, the value is set to false.
You can use the INCLUDERECORDLINKAGE context variable for the following use cases:
  • Merge records using work item
  • Direct merge
  • Manual merge
  • Query merged records by deleted and rejected linked records

Example (by Repository Name) Record Query Request File To Include Record Linkages

<Context>            
<Variable name="INCLUDERECORDLINKAGE" type="boolean">true</Variable>         
</Context>         
<Transaction>            
<Command type="Query">               
<MasterCatalogRecord etype="Entity">                  
<ExternalKeys>                     
<Key name="MASTERCATALOGNAME" type="string">Parent</Key>                     
<Key name="RECORD_STATE" type="string">LATEST</Key>                  
</ExternalKeys>               
</MasterCatalogRecord>            
</Command>         
</Transaction>

Example (by Record ID) Record Query Request File To Include Record Linkages

<Context>          
<Variable name="INCLUDERECORDLINKAGE" type="boolean">true</Variable>         
</Context>         
<Transaction>            
<Command type="Query">               
<MasterCatalogRecord etype="Entity">                  
<ExternalKeys>                     
<Key name="MASTERCATALOGNAME" type="string">PARENT</Key>                     
<Key name="RECORD_STATE" type="string">LATEST</Key>                     
<Key name="PRODUCTID" type="string">u_03</Key>                     
<Key name="PRODUCTIDEXT" type="string">u_03</Key>                  
</ExternalKeys>                  
<EntityData>               
<Attribute name="age" type="string">22</Attribute-->                  
</EntityData>               
</MasterCatalogRecord>            
</Command>         
</Transaction>