Skip to main content
Participating Frequently
Mar 8, 2021 10:05 AM UTC
Solved

User input task assignment

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.

    stefanhelzle0001
    Brainy
    Mar 8, 2021 10:13 AM UTC

    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
    Mar 8, 2021 10:13 AM UTC

    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
    Mar 8, 2021 3:40 PM UTC
    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