difference between getTableName and class name

Amey3
Giga Expert

Hi 

I am looking  for  the difference between getTableName() and sys_class_name

any approach with practical implementation is appreciated.

Thanks in Advance

Amey

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

Please reference this post which asks the same question: https://community.servicenow.com/community?id=community_question&sys_id=6a3e87eddb9cdbc01dcaf3231f96... and contains use cases, etc.

Essentially, once is utilizing a field on a table to retrieve that information whereas the other is calling a function...to then go and get it. So it's advisable to use the field versus calling a separate function to go and retrieve it if it exists (i.e. only exists on tables extended from Task).

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

11 REPLIES 11

Thanks.

I will be going through this in more detail.

Thanks Allen for correcting.

Amey refer this also

I have referred this.

https://community.servicenow.com/community?id=community_question&sys_id=c1b8c361db5cdbc01dcaf3231f96...

If the above code helps then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey