We developed a multi tenant app and the queries need to return the records associated with the login user. Below is the scenario
There are 3 objects
- SysUser
- cust
- AlarmSO
The relation is
AlarmSO(M) ----(1) cust (M)-----(M)SysUser
All the forms which shows the relationship works fine, the issue is the query.
Alarm has 5 records, customer has 3 records and all are link to alarms
I assigned the regularuser to all the 3 customers.
When run the query m it displays only records related to one customer, but what I want is to display the records for all the 3 customers.
Below is the query info
FIND AlarmSO WHERE AlarmSO.pCustomer.ID=LoggedInSysUser.pCust.ID
attached is the the related bsv.
The related query is query Login