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

Certified Associate Developer

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.

 

  Discussion posts and replies are publicly visible

Parents
  • 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).

Reply
  • 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).

Children
No Data