Record-Security Rules/Expressions

Hi! I was trying to make a security rule for my record (filter --> loggedUserName() = nomProveedor (one of my fields)), but in the security rule I can only put direct values or constants

 

I found out that there are security expressions, but how should be my structure to obtain a filter like the mentioned one? Example:

Username: Proveedor 1

I want to filter the record so that he can only see the rows in which my field "nomProveedor" is equal to the Username

Thanks a lot!

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to carlosp5114

    Hi carlos, 

    Use an error message banner in the interface which will have the same showWhen condition as your security rule. Then, for the current record security rule, display all the values when the user is not in the group. The result of this would be: 

    • You will display all the records if the user is not in the group
    • The banner message will be shown if he is not in the group. 
       
Children
No Data