Reltio Connect

 View Only
  • 1.  Determining who has what Workflow Tasks assigned and how many

    Posted 10-21-2021 11:32
    Hi folks,  I am continuing my exploration of Reltio Workflow and find it's not easy to figure out who has what tasks assigned in the Inbox after a while.  So I am resorting to the Workflow API to see if I can at least pare down the list by assignee with a filter and get my count that way.

    Attempting to figure out what users have tasks assigned via api does not seem work for me. All calls that i've tried retrieve all tasks in the system without applying the filter.


    Tried a filter on assignee for the Retrieve Tasks by Filter api call and that still returns all tasks for all users.  Similarly Retrieve Group Tasks for User doesn't filter either.  Same with Retrieve Tasks  all of these have assignee param set and they all retrieve every task.


    Here's one example (with a few things X'd out):

    curl --location --request POST 'https://gca-test-workflow.reltio.com/workflow-adapter/workflow/Xexxxxx9/tasks?assignee=michelxxxxxxs%40xxxxe.ca' \
    --header 'Authorization: Bearer cf6067f9-3971-4dc9-b205-0xxxx38' \
    --header 'Content-Type: application/json' \
    --header 'EnvironmentURL: https://gca-test.reltio.com' \
    --data-raw '{
     }
    '

    This seems like a simple thing that I couldn't get wrong...but I have.  Any idea why my 'assignee' filtering does not work?


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


  • 2.  RE: Determining who has what Workflow Tasks assigned and how many
    Best Answer

    Reltio Employee
    Posted 10-21-2021 19:06

    You can get the tasks assigned to a single individual with:
    POST https://gca-test-workflow.reltio.com/workflow-adapter/workflow/{{tenantID}}/tasks/
    Header: EnvironmentURL: https://gca-test.reltio.com

    BODY:
    {
    "completed": false,
    "assignee": "dan.gage@reltio.com"
    }

    I think the key is that you need to put the assignee in the body and not the querystring.
    More details available here:
    https://docs.reltio.com/workflowapi/retrievetasksbyfilter.html?hl=assignee


    ------------------------------
    Dan Gage
    Principal Solution Consultant
    ------------------------------



  • 3.  RE: Determining who has what Workflow Tasks assigned and how many

    Posted 10-22-2021 09:37
    Ah, thanks that worked!  I forgot about the body!  I've been so used to using params for the GET api's .  Silly beginner mistakes...i'm getting there :)




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



  • 4.  RE: Determining who has what Workflow Tasks assigned and how many

    Reltio Employee
    Posted 10-22-2021 02:51
    Hi Michelle,

    You can use Retrieve Group Tasks to list the tasks which are assigned to a user by providing assignee as one of the parameters. Attaching a screenshot of how this works in Postman. Alternatively, you can check out our developers portal for details & test out different combinations here .
    Thanks, Nirmal


    ------------------------------
    Nirmal Natarajan
    ------------------------------



  • 5.  RE: Determining who has what Workflow Tasks assigned and how many

    Posted 10-22-2021 09:38
    Thanks, got it working.

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