What is the other approach to be used in ACLs other than Gliderecord , GlideAggregate.

Nawal Kishor S2
Tera Guru

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.

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage
Tera Sage

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

 

View solution in original post

1 REPLY 1

Danish Bhairag2
Tera Sage
Tera Sage

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