Inbox Query expression

464
1
05-18-2023 07:54 PM
AppDevMWCI
New Contributor

Can someone help me with this?

What I would like to do is to make the inbox only show records that match the device id of the user.

AppDevMWCI_0-1684463859608.png

I manually assigned the device id of the user in the DeviceID field. This will serve like a unique username.

DeviceID2 retrieves the device id of the device and DeviceID3 just copies the value from DeviceID2.

For example, user with device id 'abcde123' (DeviceID2 and DeviceID3) will only see in his Inbox records with 'abcde123' in the DeviceID field.

How can I setup a query expression in my Inbox to only show records with matching values from the DeviceID and DeviceID3 fields?

AppDevMWCI_1-1684464781481.png

 

0 Kudos
1 Reply
ChristopherCounsell
MVP Regular Contributor

I think deviceid is actually a survey123 unique id, so you may want to use pulldata("@property", 'userAgent')  or something else to fill a question with a property.

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_D526...

To your question, I don't believe anything outside of general SQL queries (field=value) works in the inbox query expression. The username is an exception to this, and has to be called by ${username}, regardless of the survey design.

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