- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 07:59 AM
Hi
I am looking for the difference between getTableName() and sys_class_name
any approach with practical implementation is appreciated.
Thanks in Advance
Amey
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 08:04 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 08:04 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 08:18 AM
Thanks for the Link.
It is pretty much useful

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 08:23 AM
Hi,
You're welcome. Are you sure that the reply you marked Correct is actually Correct and helped guide you appropriately?
If you don't mind, please review these responses as I feel pretty strongly I covered it correctly.
You can only mark one reply as Correct and that post below contains misinformation, in my opinion.
Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2020 08:57 AM
I usually don't follow the Question Thread which are not marked correct.
The Thread which you gave is informative but isn't marked correct. I actually went through it but that wasn't marked correct so just put it aside for while and posted the question directly on community.
Thanks