Query where in inbox with ${username}

138
2
Jump to solution
04-14-2022 02:56 AM
MatthiasDufourCAC
New Contributor II

Hi,

I would like to know if it is possible to create a conditional query for the inbox based on the user.

The goal is that in the inbox only returns the records dedicated to each of our service providers when they connect. But if it is not one of our providers who connect, the list in the inbox returns all the files.

My query might look like this:

WHEN provider=${username} THEN provider=${username} status <> 'Finished' ELSE status <> 'Finished'

Thank you in advance for your help

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

You will need to create two surveys:

  • One for logged-in users: provider=${username} and status <> 'Finished'
  • One for non-logged-in users: status <> 'Finished'

Using the submission_url setting you can have both surveys work on top of the same layer

View solution in original post

2 Replies
IsmaelChivite
Esri Notable Contributor

You will need to create two surveys:

  • One for logged-in users: provider=${username} and status <> 'Finished'
  • One for non-logged-in users: status <> 'Finished'

Using the submission_url setting you can have both surveys work on top of the same layer

MatthiasDufourCAC
New Contributor II

Hi Ismael,

Thank you for your answer !