I'm trying to create a case list filter in CommCare. Specifically I want to create a filter such that a case property (interviewer_username) is equal to the username of the person who is logged in. I have seen the instructions for how to do this using custom user data and the mobile worker first/last name, but how do you reference the username itself?
CommCare – How to Reference Mobile Worker’s Username in Case List Filter
commcare
Related Topic
- How to reference name and surname of a user in CommCare
- Saving location name from multiple choice lookup table as a case property
- CommCare – How to Save Result from Lookup Table to Case Property
- Are case types case sensitive in CommCare
- Display the owner of a case in the case list
- CommCare – Syntax for Referencing User Case Properties
- How to see what case/report/user data a CommCare user has access to on mobile
- How to filter a case list to display only cases that the mobile user’s location owns
Best Answer
You can access the
username
of a user in the case list filter with this syntax:More information can be found here: https://confluence.dimagi.com/display/commcarepublic/User+Case. The username isn't stored in Custom User Data, but rather the User Case.