You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!