Reltio Connect

 View Only
  • 1.  Postman API to Use Saved Search Query

    Reltio Partner
    Posted 12-15-2021 11:51
    Hello,

    Is there a Postman API which we can use the saved query that is created in Reltio UI, then pull the filtered data via API?

    ------------------------------
    Eren Zedeli
    Data Scientist
    Imidia LLC
    ------------------------------


  • 2.  RE: Postman API to Use Saved Search Query

    Founding Member
    Posted 12-15-2021 15:21
    Hi Eren 

    Above can be used using below steps 
    1. Run POST Authorization API via below API from Postman. Pass all username, passpword information 
    {{urlAuth}}/token?username={{username}}&password={{password}}&grant_type=password ( Where urlAuth = 'https://auth.reltio.com/oauth' )

    2. Run GET Entity API as stated below. Pass on tenantURL and attribute name and filter. Below is an example.
    {{tenantURL}}/entities?filter=containsWordStartingWith(attributes, '1SZriV7M')


    ------------------------------
    Chandra Mohan Reddy Dalli
    Infosys
    Morris Plns
    ------------------------------



  • 3.  RE: Postman API to Use Saved Search Query

    Reltio Partner
    Posted 12-20-2021 13:53
    Hello Chandra,

    Thank you for the quick response.

    Maybe I should have been more clear with my question. I was wondering whether there was an API that helps you use the query you created on Reltio UI (Advanced Search).

    Let's say, I saved a query on Reltio UI (see the screenshot below) and I want to use the same query to pull the data via API.




    ------------------------------
    Eren Zedeli
    Data Scientist
    Imidia LLC
    ------------------------------



  • 4.  RE: Postman API to Use Saved Search Query

    Reltio Employee
    Posted 12-22-2021 12:45
    Hello Eren,
    What you're looking for, may be done in two steps -

    get the filter query for the saved search
    - you can use this API call to get the saved searches for your tenant along with the query in the "filter" section in the response
    Request:
    GET {{tenantURL}}/personal/allSavedSearches

    Response:
    "uri": "savedSearches/31syN2d6",
    "name": "Saved Search Orgs",
    "query": "filter=equals(type%2C'configuration%2FentityTypes%2FOrganization')&options=searchByOv%2CovOnly",
    "isFavorite": true,

    use the same filter in a entity search API
    Request:
    GET {{tenantURL}}/entities/_search?max=100&filter=equals(type%2C'configuration%2FentityTypes%2FOrganization')

    ------------------------------
    Ranadip Das
    ------------------------------



  • 5.  RE: Postman API to Use Saved Search Query

    Reltio Employee
    Posted 12-21-2021 10:20
    Hello Eren,

    The "Saved Search" feature is meant to be used from Reltio UI, hence there are only following API endpoints that are related to this feature
    1. Create Saved Search
    2. Update saved search
    3. delete saved search
    4. get all saved searches
    5. get specific saved search of a user

    When a user clicks on a saved search screen, MDM UI will make a normal entity search API call using the filter criteria that are stored under the saved search. You should use normal search API.

    Thanks and Regards,
    Nagesh Lakinepally



    ------------------------------
    Nagesh Lakinepally
    ------------------------------