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. You can use the INCLUDERECORDLINKAGE context variable for the following use cases:
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>
Copyright © Cloud Software Group, Inc. All rights reserved.