Reltio Connect

 View Only

Not able to pass "Environment URL" as a request header in to invokeAPI() method

  • 1.  Not able to pass "Environment URL" as a request header in to invokeAPI() method

    Reltio Partner
    Posted 3 days ago

    Hi,

    1. We are trying to manually start a process instance by calling an API in our Java code. We have implemented the ReltioApi interface in our Java class, and the method we are using to call the Start Process Instance API is as follows:
    String invokeApi(String accessToken, String url, String requestMethod, String requestBody)

    2. We are trying to call the following API using this method:
    curl --location 'https://localhost:8443/workflow-adapter/workflow/{tenantid}/processInstances/' \
    --header 'EnvironmentURL: https://test23-usg.reltio.com' \
    --header 'Authorization: Bearer <access token>' \
    --header 'Content-Type: application/json' \
    --data '{
        "objectURIs": [
            "changeRequests/2V3lzMg",
            "entities/0SZfrbt"
        ],
        "processType": "DepartmentAReview"
    }'

    3.  However, as shown in the invokeApi method, there is no parameter to pass the EnvironmentURL header. How should we handle this issue?

    Thank you!







    ------------------------------
    Gayatri Khatale
    Blue Altair
    Pune
    ------------------------------