Reltio Connect

 View Only
  • 1.  Select filtering for Crosswalk attribute

    Posted 15 days ago

    Hi Team,

    We have a requirement that we need to display or get only "Crosswalk.type" and "Crosswalk.value" while sending GET entity by ID.  We have tried all the below -
    Types Tried - 

    GET API with specifying attributes in select statement 

    ·       GET API with "CleanEntity" option

    BBut in above two types, i am only getting like below output from Crosswalk.

    • Query - {{tenantURL}}/entities/xxxxx?&select=crosswalks,attributes._lookupCodes,attributes.FirstName
    • Output - 
      "crosswalks": [
              {
                  "uri": "",
                  "type": "",
                  "value": "",
                  "reltioLoadDate": "",
                  "createDate": "",
                  "updateDate": "",
                  "attributes": [
      }
      ]
      Issue - i am getting all the attributes under crosswalk, but i need only uri and type

    Question - Is there a way to get it ?



    ------------------------------
    Chetan P
    Tech Mahindra
    ------------------------------


  • 2.  RE: Select filtering for Crosswalk attribute

    Reltio Partner
    Posted 13 days ago

    Hi Chetan,

    Currently, Reltio does not support getting a response from the GET Entity By Id API that contains only the crosswalks.type and crosswalks.value attributes. 

    In the select parameter, which defines the properties to be included in the response, it is possible to specify the crosswalks attribute; however, referencing its sub-attributes using crosswalks.{subAttribute} is not supported. Here is a list of attributes that can be chosen for the select query parameter: Get Entity API

    However, I can suggest you an alternative approach by implementing a post-request script that gets crosswalks.type and crosswalks.value and logs them in the Postman console:

    Request

    GET https://{{env}}.reltio.com/reltio/api/{{tenantId}}//entities/{{entityId}}

    Post-request Script

    // Parse the response JSON
    let response = pm.response.json();
    
    // Extract crosswalks array
    let crosswalks = response.crosswalks || [];
    
    // Extract only type and value
    let crosswalksInfo = crosswalks.map(cw => ({
        type: cw.type,
        value: cw.value
    }));
    
    // Log the simplified result for verification
    console.log('Crosswalks information:', crosswalksInfo);
    

    Console output

    Naturally, I may not be fully acquainted with the specific business context you are addressing. Should you require further clarification or have additional questions, I would be happy to provide further assistance.

    Regards,



    ------------------------------
    Lyubomira Alexandrova
    Software Engineer
    Ulpia Tech
    ------------------------------