The forwarding rule makes the return combination but the quotation still appear to everyone
I am trying to make the salesmen to not see each others quotations and the admin can see all :
I tried these codes and I didn't work :
1st attempt:
resulstr = _system_user_login + "~" + _system_company_name + "~" + "Admin" + "|";
/* Print and return the final result */
print(resulstr);
return resulstr;
2nd attempt
resulstr = "";
profile = "";
if (_system_user_login == createdBy_t) {
profile = "Admin";
} else {
profile = "RestrictedAccess";
}
resulstr = _system_user_login + "~" + _system_company_name + "~" + profile + "|";
/* Print and return the final result */
print(resulstr);
return resulstr;
the combination appear and It's like (userlogin~companyname~profile|)
what do I do wrong and Is there anything that I need to do other than the forwarding rules