Real time scenario-based questions for scripting in ServiceNow

RaghuRamB
Giga Contributor

Hi,

Can anyone help me to share the real time scenario questions with answers for scripting in ServiceNow

4 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron

It is tough to say because interview questions are usually based on real-world scenarios.

Nowadays, the interview approach has changed significantly. What you mentioned in the CV has become very important, and most of the questions will revolve around the experience, skills, and projects that you have listed there.

 

https://www.servicenow.com/community/servicenow-studio-forum/guidance-needed-struggling-with-service...

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

View solution in original post

Srikanth_9
Mega Sage

Hi @RaghuRamB,

 

For more real-time scenarios questions refer YouTube videos and practice those in your PDI.

 

If the provided solution is useful/working, please Accept as Solution and hit the Helpful. 
 
Thanks & Regards,
Srikanth Akula.

View solution in original post

Aditya_hublikar
Mega Sage

Hello @RaghuRamB ,

 

  1. Compare two date fields and show a message or populate a field if they are not equal(onChange)

  2. Populate caller email automatically when caller is selected (onChange)

  3. Populate manager field when caller is selected  (onChange)

  4. Auto populate logged-in user in “Requested For” variable in catalog item (Catalog Client Script (onLoad)

  5. Populate multiple catalog variables based on one variable selection (Catalog Client Script (onChange)

  6. Show or hide fields based on another field value (onChange)

  7. Make a field mandatory when a specific condition is met (onChange)

  8. Remove mandatory condition if value changes  (onChange)

  9. Validate start date and end date before submitting form  (onSubmit)

  10. Prevent form submission if validation fails  (onSubmit)

  11. Auto populate user details (phone, email, department) when user is selected  (onChange)

  12. Populate building name when location is selected  (onChange)

  13. Populate users based on assignment group (onChange)

  14. Clear dependent fields when parent field changes  (onChange)

  15. Show error message when invalid data is entered (onChange)

  16. Restrict form submission if user is not part of a specific group (onSubmit)

  17. Show specific fields when a new form loads  (onLoad)

  18. Set default values when form opens (onLoad)

  19. Display warning message when priority is high (onChange)

  20. Auto populate short description based on category  (onChange)

  21. Disable or make field read-only based on conditions  (onChange)

  22. Clear field values if condition not satisfied (onChange)

  23. Validate numeric values before saving record (onSubmit)

  24. Display informational message when form loads (onLoad)

 

you can refer this threads :

https://www.servicenow.com/community/itsm-forum/scenarios-of-client-script-server-script/td-p/341225...

 

https://www.servicenow.com/community/developer-articles/client-script-in-servicenow-with-some-use-ca...

 

https://www.servicenow.com/community/developer-forum/want-some-use-cases-for-client-script-business-...

 

 

https://www.servicenow.com/community/developer-blog/mastering-client-scripts-in-servicenow-a-practic...

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

 

View solution in original post

5 REPLIES 5

Tanushree Maiti
Tera Patron

Hi @RaghuRamB 

 

Go through these course and other resources. from script itself, you will find the usecases.

1. Introduction to Scripting in ServiceNow 

2. Scripting in ServiceNow Fundamentals 

3. Refer syllabus for scripting : KB0012764 Scripting in ServiceNow Fundamentals (SSNF) Syllabus 

4. Go through once related youtube videos

https://www.youtube.com/watch?v=Ccxb4UJKF9c

https://www.youtube.com/watch?v=WLNQinTkLfQ

5. Practice in  your Personal Developer Instance (PDI).

6.Client Script in ServiceNow With some use case.

7.https://www.learnnowlab.com/Business-Rules/

8.want some use cases for Client Script, Business rule , Script Include , and Glide Ajax  

9.Mastering Client Scripts in ServiceNow – A Practical YouTube Playlist for Real-World Scenarios

10.Script Action: A Practical Example!

etc. 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
This ServiceNow Developer Full Course focuses on ServiceNow client scripts, a core skill for any aspiring ServiceNow developer. Whether you're preparing for a ServiceNow developer job, certification, or just want to enhance your ServiceNow scripting skills, this video is the perfect place to ...
This ServiceNow Developer Full Course walks you through a scalable and secure approach to data validation in ServiceNow. Using Script Includes, GlideAjax, and a refactored EmployeeEntity, we demonstrate how to eliminate redundant logic and apply object-oriented principles to improve data ...