BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  How to retrieve ad-hoc team members?

    Posted Fri June 03, 2022 04:37 AM

    Hi All,

    There is a task in an app assigned to a dynamic (or ad-hoc) team created in a team filter service. In the taskID property of the task data retrieved by a REST service there is the ID of the team, but when I call either the tw.system.org.findTeam method passing the team ID and the snapshot ID, I get "Internal Script error: java.lang.IllegalArgumentException: '14552' is not a valid ID in string form."; when I call the team details REST service passing the team ID, I get an error saying "The 'teamId' path parameter has an invalid or unsupported value '14552'. Supported values are: 'External ID format of Participant'"

    Excerpt of the task data retrieved by a REST service:


    response of the REST service while getting team data:



    It is very interesting that BAW do not accept the team ID which is returned by themself...

    ---

    So, the final goal is to return the list of users in the actual (static or dynamic (ad-hoc)) team assigned to the task. How to do that? How to get the users actually able to execute the task, or how to successfully retrieve the team assigned to the task?

    Thx,



    ------------------------------
    Laszlo
    ------------------------------


  • 2.  RE: How to retrieve ad-hoc team members?

    Posted Fri June 03, 2022 10:00 AM
    Hi Laszlo,

    The result of a team filter service is not a team, it's a dynamic group.
    So, you need to either use tw.system.org.findRoleById or Group Details from REST API.



    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: How to retrieve ad-hoc team members?

    Posted Tue June 07, 2022 02:48 AM
    Hi Atanu,

    Thanks for your really useful answer again! It works great!
    Sometimes property names are deceptive...

    Thx,


    ------------------------------
    Laszlo
    ------------------------------