Reltio Connect

 View Only
  • 1.  Can we limit number of records when exporting data in csv via api

    Posted 06-09-2023 10:31

    Can we limit number of records when exporting data in csv via api



    ------------------------------
    Inderjeet Kaur Sasan
    Eaton
    Riddhi Towers,Viman Nagar
    ------------------------------


  • 2.  RE: Can we limit number of records when exporting data in csv via api

    Reltio Employee
    Posted 06-10-2023 00:49

    Hi Inderjeet,

    Can you expand on why you want to limit the number of rows?



    ------------------------------
    Gino Fortunato
    Senior Solution Engineer
    Reltio
    ------------------------------



  • 3.  RE: Can we limit number of records when exporting data in csv via api

    Posted 06-12-2023 04:37

    I am doing a sampling of data based on a filter condition. But it is exporting all customers which is more than 4m records and is too much for sampling. Therefore I need to sample the data and export just 10k records.



    ------------------------------
    Inderjeet Kaur Sasan
    Eaton
    Riddhi Towers,Viman Nagar
    ------------------------------



  • 4.  RE: Can we limit number of records when exporting data in csv via api

    Posted 06-12-2023 05:52

    Hi Inderjeet,

    Hope this will be useful to you.
    Below is the CURL used to limit number of profiles for an sample entity.

    CURL used - 

    curl --location --request GET 'https://dev.reltio.com/reltio/api/xxxx/entities?max=200' \
    --header 'Authorization: Bearer xxxx' \
    --header 'Content-Type: application/json'
    Let me know if this works.
    Thanks & Regards,


    ------------------------------
    Chetan P
    Lead MDM Specialist
    Freshworks
    Chennai
    ------------------------------



  • 5.  RE: Can we limit number of records when exporting data in csv via api

    Posted 06-12-2023 06:05

    Hi Chetan,

    Thanks for your reply, problem is- in get API this can be used, but not for export API. Below is what I am using-

    https://na03-test.reltio.com/jobs/export/{{mdmTenant}}/entities?fileFormat=csv

    Regards,

    Inderjeet



    ------------------------------
    Inderjeet Kaur Sasan
    Eaton
    Riddhi Towers,Viman Nagar
    ------------------------------



  • 6.  RE: Can we limit number of records when exporting data in csv via api

    Founding Member
    Posted 06-12-2023 14:34

    You can use attribute level filter as well updateTimeFilter if it helps
    e.g., 

    {"ovOnly":true,"includeType":["configuration/entityTypes/Person"],"serviceName":"exportEntities","updateTimeFilter":{"since":1572978600000,"to":1736482599000}}


    ------------------------------
    Ashish Rawat
    Sr. Manager
    Fresh Gravity
    Bangalore
    ------------------------------



  • 7.  RE: Can we limit number of records when exporting data in csv via api

    Reltio Employee
    Posted 06-12-2023 22:11
    at the very least, you have to be able to do this the same way it is done in the UI.  that may required two API calls, but that would still get it done....

    --

    Gino Fortunato

    Senior Solution Consultant

    gino.fortunato@reltio.com
    +1-415-867-4195

    Join Us:


    www.datadriven2023.com







  • 8.  RE: Can we limit number of records when exporting data in csv via api

    Reltio Employee
    Posted 06-12-2023 09:24
    So if I understand correctly, the real problem is that your filter condition is not working properly.   May I ask what the filter is?  Does the filter work in advanced search?  Have you tried the filter in advanced search and then exporting the data from the advanced search screen?

    --

    Gino Fortunato

    Senior Solution Consultant

    gino.fortunato@reltio.com
    +1-415-867-4195

    Join Us:


    www.datadriven2023.com