What is Outbound REST Message in ServiceNow | 4MV4D | S01L09
[Music] in order to subscribe to my channel please click here or click here please share comment and like my videos and channel hello guys welcome to sas word service now this is part of service now four minutes video for developers this is the next lesson of series of rest integration in service now in this lesson we will talk about outbound rest method in service now you will learn about what is outbound rest method in now components of outbound rest method we will also have a quick look of outbound rest method module in servicenow which is used to manage all outbound rest messages for integration so starting with what is outbound rest method outbound rest method is a functionality of servicenow to connect with third-party applications to create to update or delete records in same third-party applications outbound rest methods use mid server to send rest api call to internal network applications let's say you have an application in your organization and you have service now now you want to create or update records in this application from servicenow whenever user or system performs some action in servicenow now how exactly this can be achieved now this can be achieved via sending outbound rest message to this third-party application from servicenow let's see the components of outbound rest message a rest message consists of endpoint which is the url of another system where you need to create or update data so this endpoint is mandatory element to initiate any integration so if you want to call any third party uh url from your service now then endpoint is mandatory so you have to provide endpoint to send that call to that third party application from service now component we have for rest is headers which basically contains information about the request like such as desired response format when you basically send a rest api call to the third-party system from servicenow you can specify the headers that means you can specify for example you want the response from that third-party application in a specific format you can mention in the headers that's what you send to that third-party application that hey i want this kind of format when you process the request and return the response to my system another important component of rest message is authentication which in which you define what type of authentication you are going to use and credentials to connect with third-party applications basically these are like credentials which you have to specify and those credentials are basically provided by third-party application administration so whosoever will own that application maybe they are the administrator like you are administrator for servicenow similarly if whatever application you want to connect you want to send that call rest api call to that system so any anyone who is admin of that particular system has to provide those authentication details now the last important component of rest message is http methods in which you define what type of operation you are going to perform in third-party application such as get which is used for fetching data from another system so for example in servicenow you want to fetch some data from another system in that case you will use get method so when you will do a rest api call you have to mention that method that hey i want to fetch the data now similarly we have another method like post which is basically used to create record in another system and we also have some other methods like put and delete methods in rest to update and delete records respectively outbound rest module in service now outbound rest module so servicenow has out-of-the-box module under system web services for outbound rest methods where all rest methods records are stored which has details for connecting to third-party applications so whatever integration you want to do whatever information you want to provide to your application so that it can connect to the third-party application that is something you provide in this module it will have different rackets so as you can see over here that once you will click on that module you will basically see the list of rest method rackets and these are out of the box rest message rackets created for different third-party systems and you can also create new rest messages for your custom integration so if for example you get the new requirement from a customer and you want to create and connect from servicenow to your your servicenow to third party application that's something and create that rest message over here let's see the rest message form and its fields so when you create a new rest message racket you will see this form where you can define the different components of rest method so whatever components whatever important components we talked about you will see you will find those elements in this particular configuration in this particular form and the first field we have is name it's just a name so where you can just mention the name of the rest message as per your integration for example you are you are going to integrate with slack you are going to integrate with some microsoft uh teams maybe those kind of naming conventions you can use over here the next field we have is description where you can provide details of your rest message as an example if you are integrating with slack application you can mention that this rest method is to integrate with slack application just a single line or maybe if you want to provide the details it's totally up to you the next field is one of the important element which we talked about and that is end point that's the first important element of any rest method where you mention the url of the web service of the third party system so for example if you are integrating with slack application slack application must have an api a kind of url and endpoint which you have to mention in this particular field so that it can send a call to the same end point and then we have authentication so here's the tab where you can define the configuration of type of authentication you can select over here that what type of authentication you want to use to connect with that third-party application and then we have next tab where we have where we have called is uh http request where you have to define headers to send to third-party application with that rest message now you can also create methods in the related list so as you can see here on the same form you have related list that is http methods which is again one of the major component of rest message outbound rest method so that we can define it and that's how it will send that call to the third party system now these methods are basically kind of rackets which are associated with the different rest messages as you can see over here like get is showing over here that this get method is basically related or created for the current rest record that rest message for yahoo finance and it is to connect with that yahoo finance endpoint so as i mentioned this http method is also a racket so that's for sure that it also has a form where you can provide the details so if i talk about the rest method method form is like this so you will find these details for http method so here you can configure as per your requirement of the integration and you can see here the example we have for get method so you have different methods like get post put delete but here we have example for get method and you can see we can select as well so if i start with the first field that is rest message which will be basically associated i would say referred to the same rest method record for which this method is created then you have name where you can provide the name for this particular method it's up to you you can just make it explanatory little bit explanatory that what kind of method it is just to maybe fetch the details of any particular type of record that is something you can mention over here and then we have next field there is important field as well where you can define just mention what type of method you want to configure for this integration that is something you can mention over here now if i talk about the methods now every third party application if i talk about methods perspective might have different endpoints might have different urls so in that case you can define endpoint and that's the next field you have and then similar to the same rest message racket you have authentication so now here it's up to you you want to utilize the authentication from the parent that means the rest record that means rest message record or you want to create or maybe mention your own authentication details maybe any other authentication details you can mention over here and then we have next tab again that is for http request where you can define the headers and parameters as per the use case you have to perform action on different system so you can see we have http headers and at the same time we also have http query parameters which you can mention now this is for querying whatever query you want to mention to your third party application that is something you can mention over here that's what we have a separate section that is http query parameters all the parameters which you want to send to your third-party application you can mention over here you can also send information to the destination system with dynamic data maybe as per the information generated from service now so in that case you can define variables which can be used to send dynamic data and this is defined in variable substitutions if i give you an example let's say you have a user in servicenow you you will you might have different users and in that case every time you create a racket you want to send that information while triggering a call from servicenow to the third party system that means username might be dynamic how will you do that in that case this variable substitution is used so you will create a variable substitution where you can put the dynamic values you will push the dynamic values and those dynamic values will be pushed to the third party application during that rest api call
https://www.youtube.com/watch?v=90MWcQ85Zo0