ServiceNow introduction to object and functions | ServiceNow tips and tricks | ServiceNow scripting
TechnoMonk
HI all, Hi all and we'll come back. So into this tutorial, we'll be looking on one more topic. Okay. This topic is more on a scripting basics, not, or you can say entirely with respect to service, but it's required to get, or to build any kind of application or to try any kind of scripting. Right. This is a must to have kind of skill.
Okay. So today we'll be looking at. Functions and objects. Okay. And how we can use internet service now. Okay. So quite often we need to, we need to form a similar action in many places of the script. Right? For example, we have to so some nice looking message to visitor log log out, or some business logic fee, uh, we have to perform, right.
So for this we venue, we use. So function are the main building blocks for any programming in any programming language. Okay. They allow the code to be called many times without reputations. We have seen a lot of examples of in functions like alert, prom and confirm by record is also one other function.
Okay. But we can create our own functions. Okay. And use it on a repetitive basis. Okay. So today and, uh, the second topic is the, how. You will the object in the function. So whenever we do the object, right. And I got a lot of, a lot of comments and lots of requests from a lot of subscriber okay. That they don't know how to handle the object they are getting from the guide record.
Right. Or they are not aware about the functions of our programming. So today we'll be. On the very basic needs of their functional programming. Okay. So for this , this is my user interface, or you can say on my personal instance, and thanks to the send you this plugin. Now you have good backgrounds, so let's try it in the background scribbling.
So I will give background again, and we will be performing all the actions, all the coding in the background script. If it opens. Just kidding. So I think in time,
I think my internet is quite slow.
Okay.
Oh, yeah. Is it okay, so let's start with the basic definition of function. So I wanted to explain what is. So how can we rewrite the function? For example, I have function that say, for example, if we have a function, that's a creative function. So it started with function. And then the function names, I will give you as a, in, for the function name.
Okay. Then we give drown braces and then curly braces in that you can write your entire business logic. So for now I will simply write, she has.info. And we will give what we will get. I'll get it. Let's give hello ward. So you'll get familiar with the base. You will get to know that the start of any functions, right?
Okay. So level what? This is all of your defined function. Okay. And your function and how to call this function. So you have to simply do, it was in full. That's it, and this is how you ... https://www.youtube.com/watch?v=UjBLp4Xunns
67503179 Bytes