Hi there,
I am looking for an Expression for the update mode in a table based on Roles in a Permission table rather than based on email addresses.
Want I ant to achieve:
Thanking you in advance.
Solved! Go to Solution.
Hi @PG3
@PG3 wrote:
- Allow ADMIN Role in Permissions table (ID, Role, Email) to have ALL CHANGES rights
- Allow all USER Roles in Permissions table (ID, Role, Email) to have only ADD and UPDATE rights only
- Allow PM Role in Permissions table (ID, Role, Email) to have UPDATE and DELETE rights only
Can you try:
SWITCH(LOOKUP(USEREMAIL(), "Permissions", "Email", "Role"),
"ADMIN", "ALL_CHANGES",
"USER", "ADDS_AND_UPDATES",
"PM", "UPDATES_AND_DELETES",
"READ_ONLY")
For reference:
Hi @PG3
@PG3 wrote:
- Allow ADMIN Role in Permissions table (ID, Role, Email) to have ALL CHANGES rights
- Allow all USER Roles in Permissions table (ID, Role, Email) to have only ADD and UPDATE rights only
- Allow PM Role in Permissions table (ID, Role, Email) to have UPDATE and DELETE rights only
Can you try:
SWITCH(LOOKUP(USEREMAIL(), "Permissions", "Email", "Role"),
"ADMIN", "ALL_CHANGES",
"USER", "ADDS_AND_UPDATES",
"PM", "UPDATES_AND_DELETES",
"READ_ONLY")
For reference:
User | Count |
---|---|
33 | |
11 | |
3 | |
2 | |
2 |