Skip to main content
March 9, 2022
Solved

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

  • March 9, 2022
  • 8 replies
  • 0 views

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,

Best answer by mikes0011

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.

8 replies

stewart.burchell
March 9, 2022

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

kend0001Author
March 9, 2022

I'm using this

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

mikes0011
Brainy
March 9, 2022

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