Scripting with ServiceNow

gyani110
Tera Contributor

I am new to scripting and as a ServiceNow professional, I am trying to work my way thru scripting. My biggest challenge is not going thru the contents within ServiceNow on scripting. But as an individual with no prior experience with scripts (in general) how do I develop this trait?

How do I become more proficient with scripts in general? Functions, classes, etc are somethings that I have learnt about it but I am unable to relate those with ServiceNow very well. Any way I could hone them?

1 ACCEPTED SOLUTION

Hi Gyandender,



Adding my thoughts if you want to understand how script works first try to understand the main two aspects "Client" and "Server". now obvious something came in your mind related to "Client" and "Server".



Client : It's is all about browser(UI). if you fill the form based on some values other values get auto populate   or some pop up came up these things can be done by client script. there are many more things that you can to perform at your browser side that will only happen through client script.



Server: it's all about database. the set of records store in some tables , so if we want to use those set of information then you need to write server side scripting.



if you are new in scripting i would suggest go through the link below. start from the scratch . java script has key role here in scripting, if you want to do some scripting try to dig into java script.



Learn to code | Codecademy



goranlundqvist has already suggested about developer training program, that will definitely help you .


You can also try to do some study from Mastering Service-Now book.



Mastering ServiceNow — Free Books | PUBLISHED Books and Manuals



Hope it will help you


View solution in original post

9 REPLIES 9

Yes I have undergone the trainings that exists in developer.servicenow.com.



My problem areas are understanding the purpose of using a script and then which script should be used where and of course how? I know they could be some very silly or stupid queries but I guess that's why the community is here for in the first place.


Hi Gyanender,



This is very genuine question who is new in service-now to understand how script works and in which scenario, but I would say instead of getting a readymade answer (that would be tough to grasp) try to do some hands-on with real time scenarios (scenarios, you can get from community). Scripts are just for customization with different use cases.


Hi Gyandender,



Adding my thoughts if you want to understand how script works first try to understand the main two aspects "Client" and "Server". now obvious something came in your mind related to "Client" and "Server".



Client : It's is all about browser(UI). if you fill the form based on some values other values get auto populate   or some pop up came up these things can be done by client script. there are many more things that you can to perform at your browser side that will only happen through client script.



Server: it's all about database. the set of records store in some tables , so if we want to use those set of information then you need to write server side scripting.



if you are new in scripting i would suggest go through the link below. start from the scratch . java script has key role here in scripting, if you want to do some scripting try to dig into java script.



Learn to code | Codecademy



goranlundqvist has already suggested about developer training program, that will definitely help you .


You can also try to do some study from Mastering Service-Now book.



Mastering ServiceNow — Free Books | PUBLISHED Books and Manuals



Hope it will help you


vipinverma
Kilo Contributor

Hi Gyanender,


I would suggest you to use some basic ready-made java-script code on standalone HTML pages. You may take help from w3schools or write your questions & queries to me. Create few html controls (text box, drop down, text area) and try to get values from those using java-script. Try to do basic validations on the html controls. This would give you basic idea how this works.



I am sure once you do this you would find it quite easy and would be able to write more complex scripts.



Good Luck!!



Thanks,


Vipin Verma


Aakash Shah4
Tera Guru

Hi Gyanendra,



Just to add to all of these, kindly visit this blog.


I hope it would be helpful



JavaScript learning path: From Zero to Hero