- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 09:30 PM
Hi Experts,
I have a requirements to remove the glideRecord and GlideAggregate from the ACLs Script, So what is the other approach to be used in ACLs other than this. We are strongly used not to use Gliderecord in ACLs.
Please provide the best solutions.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 09:40 PM
Hi @Nawal Kishor S2 ,
Yes as a best practice it is recommended not to use GlideRecord or GlideAggregate in ACL's. But there are certain scenarios where u do need to use it. So consider one thing in this case .
Check on which table u want to validate the things. Is it on the current table or some other table. Can that happen if u do a dot walk using current.field_name_of_current_table.other_table_field.
If the above thing can be done then no need of GlideRecord.
But let's say the logic is required to do a GlideRecord to the other table then in that case u can consider calling a script include from the ACL script section in the below way.
answer= new Script include name().functionname();
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 09:40 PM
Hi @Nawal Kishor S2 ,
Yes as a best practice it is recommended not to use GlideRecord or GlideAggregate in ACL's. But there are certain scenarios where u do need to use it. So consider one thing in this case .
Check on which table u want to validate the things. Is it on the current table or some other table. Can that happen if u do a dot walk using current.field_name_of_current_table.other_table_field.
If the above thing can be done then no need of GlideRecord.
But let's say the logic is required to do a GlideRecord to the other table then in that case u can consider calling a script include from the ACL script section in the below way.
answer= new Script include name().functionname();
Thanks,
Danish