zoho.loginuserid in criteria

zoho.loginuserid in criteria

  1. list  Team_Events
  2. {
  3.     displayname = "Team Events"
  4.     show  all  rows  from  events [team == members[email == zoho.loginuserid].team]
  5.     (
  6.       ...
  7.     )
  8. }

team == members[email == zoho.loginuserid].team returns the correct BIGINT.
If I set team to that number statically, it filters the correct data.

Why then does this not work?