The CreatorCon Call for Content is officially open! Get started here.

Why does SCTASK gets created instead of TASK?

John Vo1
Tera Guru

Does anyone know why when I submit a REQ and Task gets created it shows sctask instead of task?

find_real_file.png

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

The Catalog Task table extends task and is used OOB in conjunction with the Service Catalog.


It has fields pertinent to the Service Catalog that do not exist on the Task table.



You can see the number prefix definition in "System Definition > Numbers" where 'Table' is "sc_task"



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

9 REPLIES 9

The SN Nerd
Giga Sage
Giga Sage

The Catalog Task table extends task and is used OOB in conjunction with the Service Catalog.


It has fields pertinent to the Service Catalog that do not exist on the Task table.



You can see the number prefix definition in "System Definition > Numbers" where 'Table' is "sc_task"



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

darius_koohmare
ServiceNow Employee
ServiceNow Employee

Hi John,


This is based on how ServiceNow has structured its tables.


In our world, the 'Task' table is a parent table from which many Task types (incidents, problems, changes, catalog tasks, etc.) have been extended from. By doing so, the extended tables inherent the fields that exist at the top 'Task' level.



Now we create a Catalog Task in the context of a Requested Item, because a requested item is generally to fulfill a catalog item request. This Catalog Task table is defined so that its prefix is SCTASK (or service catalog task).



We wouldn't use TASK, because TASK is for the parent table.


So in my Prod instance this is what I see.


find_real_file.png



But this is in my Dev instance.


find_real_file.png


They will be the same table with a different numbers configuration.


I think they changed the numbering prefix from a particular version and i bet your instances are probably running different versions.



Compare the number definitions in each system.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022