Skip to main content
felixr
June 6, 2022
Solved

Source filters do not support the now() and loggedinuser() functions

  • June 6, 2022
  • 4 replies
  • 0 views

Before  the update i was  able to  make a filter just for the loggedinuser but now i'm getting this  error  is there any way for filtering a record   that allow the logged in user to see just te  info  requested by himself.

 

    Best answer by stefanhelzle0001

    Did you check the new security rules?

    docs.appian.com/.../record-level-security.html

    4 replies

    stefanhelzle0001
    Brainy
    June 6, 2022

    Did you check the new security rules?

    docs.appian.com/.../record-level-security.html

    peter.lewis
    Employee
    June 6, 2022

    Can you describe what you're trying to do? The source filter is used only when syncing the data, so the reason functions like now() and loggedInUser() are not supported is that those functions aren't likely to be relevant (e.g. there's no loggedInUser() to assign during the sync).

    Assuming you'd like to set the record to only be visible to the user who requested it, then like Stefan said you can either use security rules (if in 22.1 or later with synced records) or Default Filters (if using non-synced records or prior to 22.1).

    felixr
    felixrAuthor
    June 6, 2022

    thanks you´ll guys i didn´t know that now i have to set  the   filter  in the security   side of the record

    peter.lewis
    Employee
    June 6, 2022

    I'd also suggest that you use the "Security Rules" option instead of "Security Expression" - it should be much easier to set up and maintain. Just use the option that says "Users found in fields" and it will result in same outcome as the expression you have here.