Default State Issue in Travel Request Table (Extended from Task)

akashmundli
Giga Contributor

Hello ServiceNow Community,

I have a custom table Travel Request that extends the Task table. I want the State field (state) to default to "Requested" when a new record is created.

However, multiple states (e.g., "Open" and "Requested") have the same value (1), and the system is defaulting to "Open" instead of "Requested."

What is the best way to ensure that the default state is always "Requested" when creating a new Travel Request?

I have tried setting the Default Value in the Dictionary, but since multiple choices have the same value (1), it picks "Open" instead of "Requested."

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Try using a dictionary override instead of in the dictionary, as your table extends from the Task table, so it is taking the default Task values instead of your table's values.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Shivalika
Mega Sage

Hello @akashmundli 

 

Best option id dictionary override

Other option is updating the existing value 

Other option is creating a custom choice values. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Try using a dictionary override instead of in the dictionary, as your table extends from the Task table, so it is taking the default Task values instead of your table's values.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Shivalika
Mega Sage

Hello @akashmundli 

 

Best option id dictionary override

Other option is updating the existing value 

Other option is creating a custom choice values. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY