based on logged user company query the records or display the incidents

busireddy
Tera Contributor

I have requirement , if logged in user company is "IBM" and on incident from we have comapny field , if compey field has mapped to "ibm" only those incident user has to access via query business rule.

7 REPLIES 7

my requirement is at the moment user try to open the list of incident's from list view user can see only the incident which are the incident's belongs to logged in user company incidents.

So there is an association between logged in user and company field.

Query Business rules will work everywhere list or records.

I will make the following change to the above BR.

var users_company = findUsersCompany(gs.getUserId);

current.addQuery("u_company_field", users_company );


function findUsersCompany(user){
// write your logic to find logged in user's company
return "sys_id of user's company";
}

 

Please mark my answers as helpful/correct, if it helped.

Thanks

 

Please mark my answers as helpful/correct, if it helped.

Thanks