Skip to main content
Known Participant
Mar 9, 2022 4:20 PM UTC
Solved

Updated multiple records with username but it shows the updater as "Appian Administrator"

Hi,

I updated multiple records at the same time, I test "Rule!" it working fine.

I also "enable activity chaining", but it did not update username properly but updated as "Appian Administrator"

do you have any suggestion?

Thanks,

mikes0011
mikes0011Answer
Brainy
Mar 9, 2022 9:14 PM UTC

Ok.  So as we already said, "loggedinuser()" will not work as you're expecting in the context of a process model - it's really only made to be used on interfaces.

If you want "rule!getMultipleRecord()" to observe the user who initiated the process, you'll need to add a rule input to the rule and pass pp!initiator into the rule's input where it's called in your process model.

The Expression Guru

8 replies

stewart.burchell
Employee
Mar 9, 2022 4:29 PM UTC

What are you using to set the value of the username, and where? (I'm guessing fn!loggedInUser() and in a process model)

kend0001Author
Known Participant
Mar 9, 2022 5:13 PM UTC

I'm using this

user(loggedInUser() ,"firstName") & " "&user(loggedInUser() ,"lastName")

mikes0011
Brainy
Mar 9, 2022 6:05 PM UTC

loggedInUser() isn't for use in a process model context.  You should look into using pp!initiator instead, or adding a user PV parameter to the process and passing in a value.

The Expression Guru