Reltio Connect

 View Only
  • 1.  Call an Scan API from RIH

    Posted 24 days ago

    Hi team ,

    We are trying to call a Scan API which is a POST and does not need anything in the request  body .

    While calling the same from POSTMAN without giving anything /choosing none in the request  body ,it is running fine.

    But from RIH  , at the time of calling the same through custom call by Reltio connector ,it is requiring a body on the request and whenever supplying anything  it is resulting an error .

    Please let us know how to call the scan API without providing anything in the body through RIH.



    ------------------------------
    Utsa Das
    Novartis
    ------------------------------


  • 2.  RE: Call an Scan API from RIH

    Founding Member
    Posted 24 days ago

    For Scan API call, the first call should have body as "{}" and follow-up call should have request body as follow to get next set of records

    {"cursor": {
            "value": "<<Cursor received in previous call>>"
        }}


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



  • 3.  RE: Call an Scan API from RIH

    Reltio Employee
    Posted 24 days ago

    Utsa, 

    It's possible to set up the scan API call from an RIH recipe. So the first call for the scan API doesn't require any request body. Did you try using the guided set up ? As that will make the setup a bit easier and if you will be able to identify what is going wrong in the set up. Refer to the following screenshots, 

    Here, I am using guided set up to set up the API call. 

    Providing the request method and the endpoint URL for my scan API. 



    Not providing any request body


    Now, if I hit "Send Request" we will see that RIH will be able to trigger the API successfully. 

    Applied this configuration and tested the recipe and as you can see from the screenshot, the recipe is being executed without any issues. 



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 4.  RE: Call an Scan API from RIH

    Posted 24 days ago

    Thanks for your detailed response.

    I am trying to call below POST scan API :-

    https://rdm.reltio.com/lookups/<RDMTenantID>/_scan?filter=equals(attributes.name,"<attributesName>") and equals(type,"<Lookuptypename>") and equals(attributes.value,"<Value>")

    I have done exactly the the same steps through the RIH guided steps and when I am not giving anything it is giving me below error :-

    java.lang.IllegalArgumentException:Illegal base64 character 7b

    And if I am sending {} in the body then also it is giving me the same error as mentioned above.



    ------------------------------
    Utsa Das
    Novartis
    ------------------------------



  • 5.  RE: Call an Scan API from RIH

    Posted 22 days ago

    Hi Experts ,

    Is there any way to resolve the same?



    ------------------------------
    Utsa Das
    Novartis
    ------------------------------



  • 6.  RE: Call an Scan API from RIH

    Reltio Employee
    Posted 22 days ago

    Hi Utsa,

    Initially, I had missed that you are trying to make a scan API call in the RDM tenant. However, I was able to reproduce the behavior you reported. 

    I tried to execute the following API 

    curl --location --request POST 'https://rdm.reltio.com/rdm/lookups/{{rdmTenant}}/_scan?filter=equals(type,'State')' \
    --header 'Authorization: Bearer XXXXXXX' \
    --header 'Content-Type: application/json'


    Even though, the API running successfully and returning a response. While trying to set up from the RIH, it's not working. 

    I will recommend you raise a Reltio support ticket so that the support team can analyze the issue. 



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 7.  RE: Call an Scan API from RIH

    Posted 21 days ago

    Can you please let me know from where you called the API which ran successfully ?



    ------------------------------
    Utsa Das
    Novartis
    ------------------------------



  • 8.  RE: Call an Scan API from RIH

    Reltio Employee
    Posted 21 days ago

    Usta,

    It ran successfully from Postman, but when I tried to set it up in RIH, it did not work and I got the same error as you. 

    On a related topic, I noticed something else in the API that you shared in the a previous comment. If you are calling the RDM API tro retrieve the RDM data, why are you using attribute.name in the filter? 



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 9.  RE: Call an Scan API from RIH

    Posted 21 days ago

    There is a specific requirement to do update based on a condition on custom attribute for Lookup data in RDM ,so I was trying to search the same through RIH and our  indentation was to do the update after the scan call from RIH.



    ------------------------------
    Utsa Das
    Novartis
    ------------------------------