Error MessageInvalid 'Access Control' record even though the selected outside table 'Case' is allowed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2022 11:00 PM
Hello Everyone,
I am getting this error "Invalid 'Access Control' record even though the selected outside table 'Case' is allowed. A table level Access Control on an outside table cannot contain a condition or script. Only roles are allowed"
Below is the script. Can anyone help with this?
var Contact = gs.getUserID();
var grVenCon = new GlideRecord('customer_contact');
grVenCon.addQuery('sys_id', Contact);
grVenCon.query();
grVenCon.next();
var venId = grVenCon.account;
var grVenProd = new GlideRecord('u_cmdb_model_solution_provider_product');
grVenProd.addQuery('u_solution_provider_id', grVenCon.account);
grVenProd.query();
var grCases = new GlideRecord('sn_customerservice_case');
grCases.addQuery('u_customer_facing_flag', true);
grCases.addQuery('u_asset.u_solution_provider_product.u_solution_provider_id', grVenCon.account);
grCases.query();
while (grCases.next()) {
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 08:33 PM
Can you share screenshot of the error?
ACL is on which table? you are in which scope?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2022 12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2022 01:36 AM
Hello
I updated in "Curstomer service" application ACL updated without any error but still I am not able to see the records in the portal who has the role I have given.
Thanks,
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2022 02:16 AM
Hi,
Any query business rule is restricting the records?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2022 04:06 AM
Hi,
There is no query business rule on this table
Regards,
Mahesh