Hi Alexander
v1.0.63.0
I ran into a bit of a problem with what I thought was a fairly straightforward set of rules that just compare person fields with the current user.
A simple match of person field email to current user email failed, even though it was the same person (me).
I think it’s partially self-inflicted in so far as for some reason our email addresses and user principal names are capitalised (in Entra), and the rule comparison is expecting an exact match on the email string.
It looks like your code is doing some conversion to all lowercase in some situations, but not all. I’ve added in extra logic that acts as a workaround but hopefully could be a relatively simple fix for a future release?
See attached screenshots for a better explanation.
[[fieldValue:PersonField.email]] – lowercase
[[fieldValue:Author.email]] – not changed
[[fieldValue:Editor.email]] – not changed
[[currentuser:email]] – not changed
[[currentuser:loginName]] – lowercase
Thanks
Adam