How to get system attributes for related record in the Web Service response.

How to get system attributes for related record in the Web Service response.

book

Article ID: KB0092419

calendar_today

Updated On:

Products Versions
TIBCO MDM -
Not Applicable -

Description

Description:
Web Service response does not return system attributes (e.g., MODDATE, MODMEMBERID, CREATIONDATE...) for related records.

Issue/Introduction

How to get system attributes for related record in the Web Service response.

Resolution

Add context variable CHILD_RECORD_WITH_SYSTEM_ATTRIBUTES to the web service request. The following is a sample request:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.tibco.com/cim/services/mastercatalogrecord/wsdl/2.0">
    <soapenv:Header/>
    <soapenv:Body>
    <ns0:DataService version = "2" xmlns:ns0 = "http://www.tibco.com/cim/services/mastercatalogrecord/wsdl/2.0">
        <ns0:Identity>
            <ns0:DirectoryPath>
                <ns0:Directory type = "Enterprise">a</ns0:Directory>
                <ns0:Directory type = "User">admin</ns0:Directory>
            </ns0:DirectoryPath>
            <ns0:Authentication type = "Password">admin</ns0:Authentication>
        </ns0:Identity>
       <ns0:Context>
            <ns0:Variable name="CHILD_RECORD_WITH_SYSTEM_ATTRIBUTES" type="boolean">true</ns0:Variable>
         </ns0:Context>
        <ns0:Transaction>
            <ns0:Command type = "Query">
                <ns0:MasterCatalogRecord etype = "Entity">
                    <ns0:ExternalKeys>
                        <ns0:Key name = "MASTERCATALOGNAME">REPA</ns0:Key>
                    </ns0:ExternalKeys>
                    <ns0:Return>
                        <ns0:RelationshipData>
                            <ns0:Relationship>
                                <ns0:RelationType>A2B</ns0:RelationType>
                            </ns0:Relationship>
                        </ns0:RelationshipData>
                    </ns0:Return>
                </ns0:MasterCatalogRecord>
            </ns0:Command>
        </ns0:Transaction>
    </ns0:DataService>
    </soapenv:Body>
</soapenv:Envelope>

Additional Information

N/A