Reltio Connect

 View Only
  • 1.  API's for workflows | details

    Posted 10-27-2021 03:21
    Hi Team,

    I am trying to pull out below items.

    1. Number of Open tasks
    2. Number of tasks w.r.t Assignee
    3. Number of tasks open w.r.t Due date
    I have referred to Reltio Documentation as well, and got the below from link
    API Report for the Workflow Service

    From the page, i tried the below :



    I tried to use it from POSTMAN as below but not working.
    Posted GET request as - https://dev.reltio.com/reltio/{tenantId/jobs

    Could anyone share some sample on how to use on this use cases.

    ------------------------------
    Chetan P
    Freshworks
    ------------------------------


  • 2.  RE: API's for workflows | details

    Posted 10-27-2021 14:23
    Hi Chetan,

    I haven't gotten to try all of the api's yet.... but this one you can do quite a bit with and I have gotten it to work:
    https://docs.reltio.com/workflowapi/retrievetasksbyfilter.html

    Important to have the 3 headers setup and the rest of the criteria in the body (not setup as params as I had mistakenly done before):

    curl --location --request POST 'https://gca-test-workflow.reltio.com/workflow-adapter/workflow/XeMkBxxxxxx9/tasks/history' \
    --header 'Authorization: Bearer 6991fca4-d995-41cf-94ce-7xxxxaaf9ed7' \
    --header 'Content-Type: application/json' \
    --header 'EnvironmentURL: https://gca-test.reltio.com' \
    --data-raw '{
    "processType""recommendForDelete",
    "completed""false"
     }'








    ------------------------------
    Michelle Popovits
    Empire Life
    ------------------------------



  • 3.  RE: API's for workflows | details

    Reltio Employee
    Posted 10-28-2021 09:53
    Chetan,

    Documentation about Workflow API is available here - https://docs.reltio.com/workflowapi/workflowapi.html
    If you want to get open tasks that meet your criteria you should use the API - https://docs.reltio.com/workflowapi/retrievetasks.html. This API supports many different filters and sorting. The total count of tasks is returned in the "total" field of a response.

    Michelle,

    API which you mentioned (https://docs.reltio.com/workflowapi/retrievetasksbyfilter.html) is mostly designed to get closed workflow tasks. I would suggest using this API if you want to get closed tasks only and use https://docs.reltio.com/workflowapi/retrievetasks.html API in case of open tasks.

    Yury.

    ------------------------------
    Yury Timofeev
    ------------------------------



  • 4.  RE: API's for workflows | details

    Posted 10-28-2021 10:27
    Thanks Yury for the clarification.  I had been wondering what the differences were between some of those similar sounding api's but hadn't yet gotten that far.  I will adjust my api's in postman.

    ------------------------------
    Michelle Popovits
    Empire Life
    ------------------------------



  • 5.  RE: API's for workflows | details
    Best Answer

    Posted 10-28-2021 11:14
    Thats great !!

    Thanks @Michelle Popovits and @Yury Timofeev for such a detailed explanation :) .
    I am able to get the tasks now through Postman.

    I am currently trying to implement few use cases and playing around Workflow API's.
    Will post here in-case i come across unique use case.​​

    ------------------------------
    Chetan P
    Freshworks
    ------------------------------