We are working on writing rules for the Direct Reports link in MSS. We've had ESS in for some time and my rule writing is a bit rusty, so I would appreciate any help with MSS. I loaded the MSS delivered template and the rule for the Employee table - if(user.isSupervisorOf(getIdFromEmpNbr(lztrim(table.COMPANY),lztrim(table.EMPLOYEE))))'ALL_ACCESS';else'NO_ACCESS'. When I try to access one of my direct reports I get an error retrieving database records. The rule seems straightforward so what am I missing?