Select to view content in your preferred language

Survey123 Connect - Filter Inbox Records by User & Attribute

306
2
04-05-2024 01:41 PM
AllisonWebb
Emerging Contributor

I would like to create an Inbox query to limit the list visible by user (two answers on the survey).  

Each user would only see their region's records in their inbox.

How do I write this expression?  The one below give me an error (Code 400)

AllisonWebb_0-1712349368875.png

AllisonWebb_3-1712349567805.png

AllisonWebb_4-1712349599967.png

 

 

 

 

 

0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @AllisonWebb

The username variable is the only dynamic variable that can be used in an inbox query.

Thank you,
Zach
0 Kudos
ChristopherCounsell
MVP Regular Contributor

You have two options

Create two surveys with different queries. The queries would be written using SQL, not ${field}. This may be practical if you have a limited number of regions or use python to automate the publishing and sharing of surveys.

Otherwise as Zach mentioned the only filter you can apply from the user side is username. But you could populate a field with a list of comma separated users and then have the inbox query check the ${username} against the list. An example of this is here:

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm

0 Kudos