Skip to main content
March 8, 2021
Solved

User input task assignment

  • March 8, 2021
  • 2 replies
  • 0 views

I have a admin screen, where the logged-in user can place a request.

The approving task should go to the all the users in the admin group except the requestor.

I tried difference(getdistinctusers(pv!groupName), loggedinUser()) on user input task assignment tab, but the task is still assigning to requestor.

    Best answer by stefanhelzle0001

    loggedinuser() executed in the model returns the admin user. See https://docs.appian.com/suite/help/21.1/fnc_people_loggedinuser.html#notes

    You might want to use pv!initiator which is the user starting the process.

    2 replies

    stefanhelzle0001
    Brainy
    March 8, 2021

    loggedinuser() executed in the model returns the admin user. See https://docs.appian.com/suite/help/21.1/fnc_people_loggedinuser.html#notes

    You might want to use pv!initiator which is the user starting the process.

    mikes0011
    Brainy
    March 8, 2021
    You might want to use pv!initiator

    To clarify, a process instance automatically has "pp!initiator" (as in "process property"), which the designer in this case should store in a PV they add i.e. "pv!initiator" (or any other name they want).

    The Expression Guru