KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4D for iOS ‘:email’ keyword in filter query is reserved
PRODUCT: 4D for iOS | VERSION: 18 R | PLATFORM: Mac
Published On: May 3, 2021

When defining a restricted query in 4D for iOS, be aware that the keyword ‘:email’ in the filter query is reserved. The keyword ‘:email’ is pre-defined to be the email used to log in to the app. In terms of the On Mobile App Authentication method, this would be the email property of the request object, or '$1.email’. It cannot be re-defined in the ‘userInfo’ property of the response object. For example, in the On Mobile App Authentication method, if you try to define :email in the filter query like this:

$response.userInfo:=New object(“email"; "@")

The filter query will not read ‘:email’ as the wildcard symbol, but instead it will use the email that the user used to log in to the mobile app.