Order field in Tables

AnasuyaRampall
Tera Contributor

What is the significance of "order" field in ServiceNow tables? Why do we choose values like 10 and 40 while creating them while doing the tutorials on learning.servicenow? I see some pre-existing tables have a value of 100 for the field "order". Is there a documentation page available for this?

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @AnasuyaRampall ,

 

In ServiceNow, the "Order" field is used to determine the sequence in which items appear or are executed. This field is commonly found in tables related to UI policies, business rules, client scripts, catalog items, and other configuration elements.

🔍 Significance of the "Order" Field:

  • Execution Priority: Lower values are executed or displayed before higher values. For example, a business rule with order 10 runs before one with order 40.
  • Display Sequence: In forms or lists, elements with lower order values appear higher or earlier.
  • Modular Control: It allows developers to control the flow of logic or UI rendering without hardcoding dependencies.

there is no one documentation page for this 

you have to open the each table doc 

 

for Business rules

https://www.servicenow.com/docs/bundle/xanadu-application-development/page/script/business-rules/con...

 

 I see some pre-existing tables have a value of 100 for the field "order"

 

yes OOB order is given in 100s they follows order in 100s because if we want to insert something order 0 - 100 it's easy to insert if let's order is given as 1 or 2 something like in this sequence we have to adjust those 2 items order just to give our logic the lower order

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

1 REPLY 1

Chaitanya ILCR
Kilo Patron

Hi @AnasuyaRampall ,

 

In ServiceNow, the "Order" field is used to determine the sequence in which items appear or are executed. This field is commonly found in tables related to UI policies, business rules, client scripts, catalog items, and other configuration elements.

🔍 Significance of the "Order" Field:

  • Execution Priority: Lower values are executed or displayed before higher values. For example, a business rule with order 10 runs before one with order 40.
  • Display Sequence: In forms or lists, elements with lower order values appear higher or earlier.
  • Modular Control: It allows developers to control the flow of logic or UI rendering without hardcoding dependencies.

there is no one documentation page for this 

you have to open the each table doc 

 

for Business rules

https://www.servicenow.com/docs/bundle/xanadu-application-development/page/script/business-rules/con...

 

 I see some pre-existing tables have a value of 100 for the field "order"

 

yes OOB order is given in 100s they follows order in 100s because if we want to insert something order 0 - 100 it's easy to insert if let's order is given as 1 or 2 something like in this sequence we have to adjust those 2 items order just to give our logic the lower order

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya