Hello everyone I'm Rohit and this is the new series I'm going to start called integration Hub in this integration Hub we are going to discuss about that how to activate the integration Hub what are the steps required for integration Hub and then there are a lot of out of boox spoke we are going to discuss in our upcoming session today's sessions we are going to discuss that how we can activate the integration Hub and then We'll discuss about the what are the requirements we needed to integrate any third party system my recommendation is that if
you have not watched my complete series about flow designer please go and watch the flow designer because this is directly related to the flow designer so my recommendation go and watch the flow designer so first let's understand what is the integration Hub so integration Hub is a mechanism or you can say a technique that we are going to use in Our flow designer and then with the help of this um integration Hub we are going to connect with the service now to any of this third party like Google or maybe um you know Amazon or
Zoom any of the third party we going to connect with very minimum low code that we are going to use that how to activate the integration up before we talk about the how to activate the integration up you should know that integration H is a chargeable thing so it's have cost so if You are trying to use the integration hub for your organization go and talk your because this is chargeable component depending on that your users and then what type of things you're going to use the service now is going to be charged based on
that so before you are going to activate that integration H or you are going to use the integration H talk to your next thing is that how you can activate this integration Hub in your customer Environment to activate the customer environment you have to visit the support. Serv now.com and there you need to put your corporate login username and password and then there you need to create a request for activating that uh integration Hub but for the practice purpose you can activate the integration Hub as well as in your PDA environment so I'll show you
that how you can activate that integration H in your PDA environment Before we go to the service now screen let's talk about that what is spoke so spoke is like a package you can see the package in this package there are lot of out of box activity will be came up you can use this out of box activity depending on your requirement you don't need to uh build custom things you just need to be use those custom spoke or custom uh actions in your flow designer so spoke is nothing but a package we call that
jira spoke we call that Zoom Spoke we are going to install those spokes uh in our earlier video but in uh in a high level spoke is like a package that will come a lot of activity for particular uh application so the package maybe J spoke maybe Zoom spoke so depending on that which spoke you're installing uh once you install this spoke you can use those uh actions there in our flow designer let's go to the next Slide the before we integrate that one system to the another system let's Say that I'm going to integrate
one system to the another system first we need to know that uh few things before we integrating uh between one system to the another system so as we know the integration could be real time or integration could be uh you know time uh periodically like um after certain time you can do that integration right so before you integrate that you should know that why you are doing the integration let's take example for the Jira using the jira integration what we can do we can actually send our story we can send our apic defect all this
information from service now to J instance right so from the service now we can send the J instance the story information we can pass that right similarly when you are trying to integrate any of this application you should know that why you are integrating that next point you should remember that what is the trigger point so trigger Point is a component that we should know that maybe whenever the story is going to be created that time we are going to send from service now to the J or maybe whenever the story is going to be
updated then that time I want to send that or maybe whenever the story is deleted Ed or maybe story is assigned depending on that it can be trigger right so we should first know that what is the trigger point or which point I should trigger the integration it could Be uh you know sending the data or receiving the data but you should know that when should be triggered next thing we should know that what is the type of integration it is inbound or outbound so if we are sending the data from service now to the
J system or any of this third party we call that called outbound okay okay but if you are receiving any data let's say the ji is sending some data and you are receiving and processing maybe you Creating a story or incident that we call the inbound so you should know that what we are doing inbound or outbound or both so both we call the by directional so by directional means that we can send the data and we can receive the data next thing is that end point so let's say that you have a service now
instance and then from the service now instance you are going to send the data to the J instance right so there could be a n number of J instance or subdomain Instance you need to be send the data on a specific J instance that we call the endpoint or we can say that URL we need exact URL where we are going to send the data that we call the endpoint next is the credential credential is nothing but to log in a system we should use the username password so for the integration we have a various
type of credential one is the API key one is the basic and then last one is the o so we'll discuss this topic Later uh this is little bit complicated but we'll discuss this later but for the remember that uh let's say you uh let's say that you are logging to a particular service user uh instance you need a username and password right similarly to integrate that from one instance to the another instance we need a credential either it could be a form of API key it could be form of the basic authentication or what
authentication the next is the request type so whenever You are going to send or whenever you are going to get the data or when we are going to do something there should be a request type okay so if you are sending some data and creating something that could be post if you are getting some data that could be K and if you are updating some data that could be a put so there could be a various type of request type we should understand the request type and we should use that then there is a request
body so request Bodies normally came up with the Json format so it could be a different format also but normally for uh standard and Uh current procedure we use the Json format uh in a request body that we are going to use from one instance to the other instance so let's say that I want to create a story with the story number 001 with the short description is test that all will come to under Json or on call the request body but let's say that you want to get some data from service Instance to the
J instance let's say that I want to get all the story information that we can use that active J story then we can can use that in a query parameter we can say that active equal to true so that it can return return all the active J Story number that we call query parameter so for getting something or when we are using the get method we'll use the query parameter when we are going to use the post output method we are going to use The request part these STS may be little odd but we are
going to actually practically Implement all these STS then once we integrate that once we connect and we have sent the data or received the data we'll get a response we'll get a response like uh uh successfully created or maybe this is these are the incident or this are the story number that will get as a response body like in a Json format or maybe XML format normally standardly we are using the Json format then we'll get a response code each code have a different different meaning so normally 200 means that connection established 2011 means that
uh request created uh you know 404 means that connection did not establish so these are the stand standard Response Code we have for this integration and that denote that what happens we can know understand that then we have uh one more thing called read and build documentation so let's say that you are Going to connect a j instance right so you're going to connect a j instance or Google Drive you can go through this Google Drive documentation and then you can understand that what are the steps you require you don't need to go and check
on the technician team or Google technician team like how we can connect that what is the Point what is the credential what is the request everything will be documented somewhere you can uh go and understand the Documentation and then you can start using that so similarly once you build your uh you know your integration things so that somebody can uh use your integration also for that you should also build a good documentation so the third party can uh read your documentation and they can connect that they don't need to unnecessarily don't need to reach back
to you they can just go through this documentation and then they can successfully able to connect That your instant so these are the requirement specification we need whenever we are connecting from one instance to the another instance normally if you go for the interview they ask that what are the steps required for integrating one instance to the another instance so to integrate any of this instance let's say the service J or maybe for slack or maybe Zoom any of this um you know instance you need these are the information first then you Should start coding
or start uh actually go to the technical thing if these things are not available then you should I mean you are not able to complete your integration you should be dependent on other team so first gather this information and then start coding or start implementing in a technical part now lastly I'll show you that how you can activate that integration Hub in your personal developer instance for that let's go back to the developers Service.com and I'll show you that how we can activate that so this is the developers. serv.com and if you see the right
side beside in your uh name you can click that and then there is the option called activate plugin you can click that activate plugin and then search for the integration H plugin so you can search that integration Hub so the moment you search the integration Hub you can see the four Integration plugins are available the first thing is the integration Hub installer is the very basic integration Hub uh which uh give you that very basic component this is the very basic one and then this is the top uh most uh packages which have that lot
of out of box Poes are available so uh depending on your use case you can install this basic or the advanced one uh but uh each package have a different different spoke you can see this is the uh AIO Microsoft ad Spoke jdbc spoke so different remember one thing this is completely free of cost for your developers. serv.com you can install and then play around that there is no cost for that but for customer environment there is some charges talk to your before implementing or uh do something in your customer environment so that's it for
today if you have any question let me in my comment section thank you very much have a great day hello everyone I'm Rohit and This is the day two of the integration Hub training in this day we are going to build our own custom jir action so this is our own custom jira action I know that in uh service now we have a uh spoke called J spoke so if you install the J spoke all this action will be automatically installed but as we are learning from the beginning what I want I want to build
our own custom action in the day two so that you know that how we can build the J action or how we can Build any of the action not the J any of any kind of action so as we discussed in our earlier class uh before we are building or before we are doing integration we should know these other the point so very first thing is that why do we need the integration we know that to connect between story and issue in the J tools maybe you think that why I pick the J or why
I'm talking about the J tools because J tools is a simple tool and then most of the user is Familiar of the Z Tool so that's the reason I'm taking the Z example now upcoming sessions we are going to pick various uh tools like uh Google Drive um slack box there are various other tools we are going to use but for the moment we are going to pick the J example so whenever the story will be created to the service now site the story should be go to the J site let's assume that this is
a outbound for the moment next how to trigger that we'll trigger from the flow So we we are going to trigger from the flow whenever the story will be created now we need these are the information so these are the information for the integration first thing is that we need to find out the end point and then we need to find out the credential so let's go back to that my jira side and then I'll show you that all these details so this is the J project that I have created called service now rit. adann
so this is my Website link and then here I have created you can go and click the view all project you will be able to to find out that lot of uh projects I have created so let's pick the training project so our goal is that whenever a story will be created to the service now site let's say that any story which is going to be created in service now site that story should be uh come to this jir as a issue we can click this button and then we can create the issue type equal
To story so this is not going to we are not going to do that manually whenever this uh story will be created to this service now site this should automatically come to the jite now for that we need to first read the documentation reading the documentation is a very important because if you don't have the J team or in-house J team you should read the documentation so let's go back to here and then search uh API documentation the moment you search that You can see that the first page is called jira Cloud platform rest DPA
I can open that so this is the documentation I have gone through so I want you to go through first and then build that so this is the J documentation and if I go back what do you want you want to create a issue right so you'll go to this issue section if I click that if you see the list left side there are various uh method are available so what do we want we want to Create a issue so we'll click this create an issue and the moment you click the create an issue it
giving some sample code sample thing right so if you see that here in the right side there are different different kind of language uh we have so you can see that for C URL nodejs Java python PHP but there's no section about the service now right so let's go to the C URL I like to the C URL that have all the information so I want that or I want To you to understand that so first thing what we need we need a uh method what method we are going to use that we are going
to use the post method what should be the url url should be this is the URL that we are going to hit that your domain is nothing but I need to be replaced with the service now uh I mean snow expert Rohit this one and then uh if you see that if I uh so this is the our URL this is the credential so how we can pass the credential in the Credential we need to pass our email address then colon then we should generate API token and that we need to be pass that and
if you see the header in the header we need to pass the accept. application slj and then header we need to pass the content type equal to application sljs this we need to be pass and in the data we need to be pass this all our information so this is the how we should pass the jsn format so this is the sample thing they have Provided we should convert it to in your our own actions right so let's build that so let's go back to the service now and then first I will install that uh
you know agile 2.0 uh that uh plugins which have the stories and others modules um available so I'll just search with that agile so I'm going to install that Agile development uh V2 so this plugin I'm going to install that I'll just install That and after that um I will do all the setup integration setup my aile development plugins is successfully install now if I uh search here in the left navigation called stories I should be able to see a module called U you can see under the aile development I should be able to see
one uh this is the modules I'm talking about the stories module now a requirement is that the moment you are going to create a story record here I'm going to create a new Story that record is going to be automatically created to this um you know uh jira board okay so that is our requirement to fulfill this requirement first what we want we need to be integrate that so we need to be integr with service now to this J tools so first step is that we need to be integrate we can integrate various way the
sessions or the class we are doing that integration Hub so we will do the integration through the integration Hub so for that first we have to go to the flow designer as you know that integration Hub is directly related to the flow designer my recommendation should be go and watch the flow designer if you have not uh check my flow designer series so first thing first we are going to create a new action right so so first we'll click this create new and then click the action the moment we click the action the dialog box
is showing let's say that I want to create A issue or I want to create a story to the J so let say that so this is my action name I'll click submit so the moment you click the submit you can see that the action form is created let's say that what all data I want to populate the first thing first I want to put that short description and description these two Fields I want to put that because these two are string field and very simple so that's the reason I want to put the short
Description and then description into the J side so whatever short description and description I'll put here the same short description description will be put under this story that's what my simple request requirement is so as you know that we need to be create a input right so first I'll click this create input and then first what we need we need to be Define two inputs let's say that short description I'll put this short Description as a mandatory now after we get this input we want to do some integration through this integration Hub so what we
do I'll click this plus sign the moment you click the plus sign there will be a popup you can see and if you minimize that you can see that uh there are three section one is the service no data uiz and then integration so we want to click this integration and then what type of integration we want we want the rest integration so we'll select the Rest integration okay so what we want we want a rest integration now under this rest indication you can see this connection so if you see that this connection is means
that you can select this connection alysis or else you can select this defined in line the moment you select the defined in line you need to Define this URL base URL or else if you see this uh use connection analysis that the moment you select that connection analysis this base URL is the Read only field right so we are going to do through the connection alysis two options available either you use the connection analysis or you can use this defined in line so let's take a connection analysis what does it mean by connection analysis let's
first understand that hello everyone I'm Rohit and this is the day three of the integration H training in this day we'll talk about the connection and credential analysis connection and credential Analysis is very important not only for the integration of for various project various integration we use the connection and cren Analysis if you don't have better idea what is the connection and credential Allis I'll show you that all these details in today's class first thing first we have called alysis so alysis is nothing but it store in a service nowe table or it can say
that we can say that it's a table where store all these allic Alles We can say the nickname okay so nickname is something called you can put some nickname and inside the nickname there could be a various things there could be a credential that could be connection so this nickname or this name can be used in our integration so first thing first we'll create a Allis under this allly there will be a connection and then credential for our case snow expert rit. atlas.com that is the connection URL so that will be the connection URL and
then In the credential we need to be pass the username and password so username and password is a credential so allies or the connection and connection allies have three component so connection and credential have three component first is the Allis second is the connection and third is the credential with the combin of these three we are going to integrate with our G instant so let's go back to the service instance and explore more so let's build that connection alysis to Build the connection analysis you need to go to the left navigation and then search for
the connection so if you type the connection uh you will be able to see that connection and credential Allis you can click that and then here you can see there are outter box some uh connection Alles created let's say I'm going to create my own I'll click new and then here you have a type called connection and credential so type means that you want To store connection and credential or you want to store only credential that depend on that so my case is the connection and credential I'll put the name called jira custom okay and
then here you can see that uh we have a option called configuration template so we'll click this configuration template and then I will select that that called basic W configuration why I'm selecting that I'll discuss that later but I'll select That basic o demo configuration now the moment you created this connection allyis you have a option called create new connection and credential simply click that and the moment you uh click that here we need to put this uh connection name so let's say our case the connection name is the jira custom spoke connection now we
need to be put the connection URL so on which instance we are going to connect that so What is our instance name our instance name is noexpert rit. Adian Donnet so this is the instance where we are going to build that or where we are going to connect that right so for that what I'll do I'll copy this instance name I'll copy this instance name and then go back here and then paste that now we need to be pass the username and password okay if you see this J documentation what it is saying that the
credential should be your email address colon your API key so Username should be your usern username should be your email address and then password should be API token right so for that I'll put my username or my email address here and then I'll put the API token the question is that how you can get this API token from the J so if you go back to the jir so if you click this settings and then uh if you click this atlan account setting it will land to that profile and Visibility page and if I uh
go to this security from there and if I go here call Api token here I can see my API token I click the create API token and then I'll create new and then here let's say that integration Hub I'm putting that integration Hub and create so it will generate a token I'll copy this token and then go back to here and then put as a password now here I need to put the username which is Nothing but my email address so I'll put that so you can see that I'm getting an error message called action
about password value is too long could not truncate encryption so this is what I'm getting a message so let's fix that for that what I'll do I'll copy this uh error message and copy that and then paste here and put that service now in the last and hit enter you can see that there is a one article for the similar issues so I'll open that this is a Similar uh service now uh you can see this is the error so what is that issue the same message error message they are getting for that what resolution
they have provided we have to go back to this uh you know go to this uh system definition and then uh search the tables so we'll go back to the tables under this system definition open that and then we need to be uh find out this called discover credential as a name so we'll put that name equal to Discover credential and you can see that one record is return I'll open this table and what they are saying that uh we have a field called password which is maximum is 255 we need to be increase that
size so this uh field needs to be you can see needs to be increased that size uh password this one we need to be increase that from 255 to uh differently okay so let's do that so you can see that in this table we have a uh field called Password 2 and if I go here do we have anything other any other field called password two so you can see there are many fields with with that password to what I'll do I'll increase all this field length uh to 1,000 and save that okay so let's
see is it saved or not and I'll just click that save so it means that all these password to F are there are updated with the maximum length is th000 now go back here Click that create new credential and then let's say that I'll put this name called J custom here I need to put that my URL so I'll copy this one and paste here call connection URL and then here here I'll copy this token and paste here and then in the top I'll put my uh email address and you can see it's automatically refresh
and it store a connection you can see this is the connection it's Created if I open this connection you can see this is the connection it's created called jira custom this is the endo and this uh pretty much looks good now what I'll do I'll go back here and then under this connection alyis I'll select this J custom one the moment I select this J custom one you can see the base URL is automatically populated so this is my base URL which is coming from nothing but from here all right hello everyone I'm Rohit and
this is the day four of the integration Hub training in this day we'll talk about that setup request body and Json Pur so we have already successfully set up the connection and credential and now it's time to set up the request body normally request body is comes from Json format so will set up this uh in a JSM format after successfully set up the request Body service now is to send the request to the jite and then jite is going to be Response and that response will become as a Jon format also so we need
to be pass using the Json Purser using the Json Purser we are going to process that response from the jira and then we'll store in some other output so let's go back to the service now and see how it works so this is my base URL which is coming from nothing but uh from here all right now under this after that you can see we have a resource spot so if I go back to this um documentation you can See that to create an issue if I click that on which end point I should hit
that my net then this is the end point I should hit that I'll copy this um end point and paste here called resource path now what should be the method the method should be post so we'll select that method equal to post then in the header what should we pass that in the header we should select that accept equal to application SL Jon so I'll put that call uh in the Header accept equal to what is the value the value is application SL Json I'll copy that and paste here then I will put one more
call what do we have content type we'll copy that content type and then the value is same called accept SL Jason we'll paste that now here you can see that we have a request body right and then if I click that what are the request body we have text binary multiart um URL from encoded so we'll select that text so in the Json Body we need to put uh some Json um so let's do that so if I go back to the documentation under this documentation you can see data right so this is the Json
that we have to be pasted there in our flow designer here we need to be paste that so what I'll do I'll copy this whole code let's say I'm going to copy this whole code and what I'll do I'll paste into the body so instead of doing that into that body I'll click this plus sign and Then I'll pick that script one so I'll go and then pick the script one and then in the script uh I will say that the script name called Json build something like that okay so I'll put this name here
I'm going to put put or uh you know build the Json okay so let's say that I'm going to build that Json here will paste there called ver Jason Jason body so this is my variable and Under this variable I'm going to paste whole code so I have paste whole code under this code you can see there are a lot of fields called custom fields that we don't need that actually so what I'll do I don't need that assigned so I'll remove that I don't need the component so I'll remove that field then I don't
need this custom field so I'll remove this custom fields and if you see that this is also I don't need I'll remove this custom Field this custom Fields also I don't need so I'll remove this custom field okay and then let's say that I don't need this uh these all custom so I'll remove that okay so these all are are removed now I need the description so this is the description format I don't need the due date I'll remove that due date uh this is the environment even I don't need the environment so I'll remove
this environment for that moment later if needed I can put that so fixed Version um I don't need that okay I'll remove that fixed version issue type I need it um I don't need the label I'll remove that label one I don't need the parent and then uh project uh sorry priority I don't need I'll remove that reporter I don't need that I'll remove that and security I don't need that I'll remove that so these are the things I don't need whatever the things I don't need I'll just removing one by one so let's say
that I have removed most of The fields so let's understand one more time so I need the description right so I need the description under the description here I need to put the actual text and then I need the issue type I need the project and then I need the summary so this is what I need actually and then um these things I should be pass that the bottom part right so let's do that uh first thing first I'm going to put this hardcoded value so I'm not going to build that I'm Not going to
put this Dynamic value called body uh I mean this uh description and then uh summary is going to be hardcoded I will just replace the project ID issue type and yeah I think I I should replace these two and see that so if you try to create a new if you go back here and if you try to create a new um issue the project issue type summary and then uh these three are mandatory so first we'll put the project so if I go back here and Click this view all you can see these are
all of the project and then uh the key the training project the key is the train so what I'll do I'll go back to the flow designer and then project is the the tree r a n and this is not ID this is a key so I'll replace ID with the key then I have a issue type and this issue type is nothing but uh you know ID is one something like that right so let's see that what is the issue type in my case I'll open this trending Project click this projects setting and go
to this issue type and if I open this story one you can see that issue type is 1 one4 this is the issue type I'll paste that so this is I'm going to hard code at the moment now summary and then uh description also hardcoded right so these all are hardcoded right now now if I scroll down that so this is the J this is the variable inside the variable I have some um something right now I need to create A variable here output variable called let's say the Json I'll say and this is or
say Json I'll select the Json and here I will copy this uh custom Json or body Json I'll put the body Json name to be more meaningful okay so body Json and under that here I need to be put some code so here you have a output variable so I'll put that output do body Json equal to the the variable that I have declared called Json here I'm Going to paste that if you are not able to understand something um you can put in my comment section I'll try to explain you so here I put
that outputs. body Json equal to Json so this is a variable inside the variable I put that somebody and then now go back to the rest steps here and here we need to be put the body right so we will F from the script so we'll go here Json build up and then body Jason I'll get from here okay so let's test That so let's say that short and if I click the steps here uh and if I scroll down here you can see that one issue created with that uh number is called TRN d8
so this is the issue which has been created so if I go back here under this um projects and go back to this backlog I should be able to see the uh the eight one so this has been created now what I'll do I'll make this short description and then description Dynamic for that what I'll do I'll go back here and then here I'll create new variables and then let's say that short and this short description will be come from this input so if you have not watched my uh flow designer I'll say that just
go and check that so I'll say the description and then I'll map from their input called description now here this is called inputs do Description I'll put there called text equal to here I'll put that inputs dot description and then under this um summary I'll put that call inputs dot uh what is that parameter short so I'll put that inputs Dosh so that's it it's done I'll just save and publish I have just saved That one more thing if you see that um the moment it's um uh return that what it returning after successful it
return um ID key and then uh some URL so we need that uh ID and key as a output for that what I'll do I'll click this plus sign we have a called Json parer so if you scroll down we have a called Json person click the plus sign and then I need to be uh put that called uh Source data from where I am getting that I am getting from the response so I'll go and then select this one and then um response body I'll get that and then here I need to be uh
put this uh structure right so let's go back to this execution and how which type of data I'm receiving that that I just need to paste there I'll copy that and there I'll go here and then paste that and then click the generate Target so it will automatically uh generate that you can see it's automatically generate ID and everything okay and uh Let's save that now one more thing that this is the Json person but actually in the outputs we have not put anything so we'll put that called let's say that outputs create output what
we need we need actually the key and one more output we need call uh ID so we'll put that ID and this two value will become from this Json person right so we'll go exit and then key key will become from root step called key and then ID will become from Uh Json Vera root step call ID from there it will become all right let's save this whole structure this um whole action and then um try to test that so I'll put that testing short description testing description and then click run test the moment we
click the run test it should hit to that our jira and it should create a uh issue you can see I got an error in line number 29 so let's see That so we'll go back to the steps and then under this line number 29 I CAU some error so you can see I put that inputs do shorts so here I got an error so I don't know why it is getting error so what I did actually I go and then update this um short to the short description DEC something like that and then I
just update my code I'm not sure that um why it do giving me error so I just updated here so maybe short was the reserve variable or something like that And then let's uh I uh let's try that I have tried that it started working short description and then description and then run test and you should be able to see that um I got a success and if I click the steps so the steps one is building the Json Json build and if you see that uh the output is that this is the output it's
generate a complete Jon you can see and then in the steps two uh to do the Integration so it did the integration actually and after integration it get and response so this is the response I have get and then after that you can see in the steps three we got an Jason purer that Jon person actually uh did that uh actually that you can see the structure way ID equal to this one Trend and this it's already done so what I'll do I will publish this U action so I'll just publish this action so our
first action is done we have successfully created our Own Uh custom issue uh things now I'm going to create a new flow so go here and then create new flow so let's say that create J story and then click submit and skip that the trigger condition the trigger condition is the moment we created a record created on which table the story table so we'll put the rmore story table so whenever the story will be Created to the service now I should be send the data to the AA what action should I do I'll click this
action and then under this action uh we will be able to find out our action name called jira I'll search that called jira create a issue I'll pick that and then from here we need to be pass the short description and description so short description will get from this story short Description and then description I'll get from the story description so I'll go and then grab that um description from here okay once we have successfully created that um record or successfully created that issue I want to put that um that issue number or issue key
in this story so I'll go back and put that lookups here or update record I'll go and then update record I'll select that update record here Under this update record I want to put somewhere into this uh details so I'll select that story record and then maybe some field let's say that do we have any called additional comments under this additional comments I want to put that story key and put the story key so let's save that and activate this flow now if I go back here under this backlog let's see how many story or
how many um issues so far created so you can See so far 12 story or 12 um was created now if I search here called stories here and try to create a story here let's say that service now story Serv now description and submit that this story should once I created this story into that uh service now this story should be Cascade to this uh Zera and it should Put that somewhere in case so let's refresh that and see if that is storing here here or not if that created here or not so you can
see the 13 story is created service now story 13 is created and this short description is coming from our uh service now and the description is service description which is coming from here and then if I refresh that somewhere it should be stored that all these detail so this way you can integrate between one instance To the another instance I just show you that it is lengthy it have several component but if you still have any question or if you still have any doubt let me know in my comment section thank you very much have
a great day in our next video we'll talk few more about uh other integration hello everyone this is the day five of jira integration hubs training in this day we are going to discuss about that jira spoke Integration Hub in our earlier class we actually built a action which is nothing but creating a issue into the J side and it takes 3 days now today we going to discuss about that Z spoke integration of which is out of box so first thing first we should know that what is the spoke so if you remember that
I already discussed about the what is the spoke spoke is nothing but a package and this package will have multiple actions so it could have 20 or 30 actions came up with easily the question is that why do we need J spoke now as we know that how to build the action can't we create that own action why do we need the G spoke yes you can create your own action and you can use that but if you simply install this J package or J integration have spoke you will get 30 action or 40 action
whatever Z actions are needed actually we spent 3 days to build a simple action but if you simply install This J spoke it will automatically come up with all these actions you can use I mean it's ready to use um actions and then this action can be used in your flow so why should not we utilize that out of box gas pooke now lastly we'll discuss about that installing of the jaspo we'll go to the service the instance and we are going to install this Jas in our today's sessions we are going to do three
things first we are going to Create an issue we're going to update an issue and we are going to add the comments so in the service now site whenever the story will be created the same story we're going to create into the J site and then whenever that updation will happen to the service now site the same issue will be updated to the Zera site and then after that if we put some commments the comment should be also reflected through the jite so these are the use case that we are going to Discuss in our
today session so let's go to the service now side and see how it works so this is our service now instance and this is our G instance if you remember that in our last class we actually connected with these uh training projects with the service no instance right before we do any kind of integration we should know that what is the Z SPX out of boox function is supported so for each spoke service now have a documentation you can simply Search called G spoke and you will get this complete um documentation into the service now
site now there are a lot of information here there how we can install that what other the things are there we are more about interest about the Z spoke okay so spokes actions so if you click that simply called spoke action you will be able to find out that what all actions out of box available now left side if you see that category we are more interested about issue man Management so if you see that on the left side category issue management we have a function called add commands we have a function called assign issue
we have a function called create issues and create issues so these are the options are available already we can utilize that and we can use that right so these things we are going to actually build our or we are going to use that in our today's sessions so first thing first as we know that our use case is that we Should do some integration from the story module to this uh J issue module right so let's do some setup first so first I'll go to the stories module under the story module if I open this
story I will store some information uh like this uh project information so if I create a manually a let's say I'm going to create a manually a issue here into the J side let's say I'm putting something and click create what I will get that I'll get two Things first thing first you can see that this is the issue uh you know ID okay so this is that issue ID we'll get that called train 16 and there is a one key so two things we'll get that one is the issue ID and another is the
issue key okay so we are going to store this two information first in our system so I'll go to the story module and then I'm going to create two or three Fields into that service now uh you know here let's open this One so this is the story modules under the story module I'm going to create a tab called jira details and there I'll create three Fields one is the issue another is the key and then third is the URL so these three information I'm going to store that so I will create this uh three
um FS into this story um table so for that I'll just right click configure form layout I'll create a new Sections let's say call J details click okay and this section I'll put after notes and then I will create three Fields first is the key string field then ID string field and then URL and this should be type called URL so these three Fields I'm going to create that and these all are related to the J details click close so what I want Actually whenever a story will be created and then um the moment the
story will be created to the service side it will hit to the Z side and then after integrating that there is a three Fields key ID and URL here it should store all this GAA related issue for that first we have to be install a plugins right so we should install the J spoke so we are talking about J spoke we should install this J spoke to installing the J spoke we can go to this plugins module Here it's a free of cost uh there's no charges for that so you can go to this plugins
and here you can search all the jaspo and hit enter the moment you can see that Jas spoke uh hit enter nothing is able to find out because I already installed this Jas spoke so you can go this installed module and you can see that I have already installed this J spoke the back end name called asore Jore spoke so it will be available for here and you Can install simply this Jas spoke once you install this Jas spoke you can uh you know go to this uh flow designer module simply as you can see
that our flow designer module is loaded and if I click this action steps and here if you if you see that application called Jas spoke if you show match that you will be able to find out that lot of actions installed the help of gas spoke application so you can see that um around 115 so 115 uh actions is installed with the help of gas spoke so last 3 days we spent to build a one actions but if you simply activate this plugins uh it will give us this action so we can utilize that we
don't need to build our own action until unless it's necessary okay so these actions are available now if I go back to the S flow and if I search with that called J spoke you should be able to find out That some spoke also which is um you should be able to find out some uh s flow also here so if I simply start with that called Jos you can see this process G this sow also install so first thing first what we need we need whenever the story will be created we need to be
integrate with this uh this J boat right so let's do that so first thing we what we'll do we'll go to this flow designer and I'm going to create a new Flow and here I'll say that uh jira issue create and click submit so this is our first flow and then let's put the trigger condition what is this trigger condition the trigger condition is that record created on which table that the flow should be run whenever that any story is getting created to this RM Story table so we'll put that table name rmore Story and
done so whenever the story is getting created this flow should be trigger now question is that whenever we click this plus sign and go to this actions under this action if you scroll down now you will be able to find out that one category called J and under this category these all are action are available out of boox actions just now installed with the help of Jas spoke okay so first thing first we have to be set up a connection or credential we Discuss about r so we need to be go to this connection and
credential module so go to this connection and credential module and if you go to this connection and credential module you will be able to feel see that the Zera this one is installed so if I simply open this U uh connection and credential alysis you can see that this is installed via J spoke so whenever we install the Jas spoke by default it's installed via that okay now what we need actually what what we want We need to be create the connection and credential so we'll click this connection and credential first then the moment we
click this create new connection you can see that it needs the URL um the server type is cloud let it be as it is we should put the username and uh API key so these three options we need to be put that so let's go back to the um J site we'll collect this uh endo and paste here this is our end point now we should put the username username is Nothing but you can see that enter a email address if you are using Z Cloud else enter the username so I should put my email
address and I should put that z uh API key now into this J side we should click this settings and go to this um atlan account setting go to this security and under this security you can see that create and manage API token so these are the steps we already uh discussed in our previous sessions I'm Going to create API token and let's say that Jas and click create now I should copy this token and go back to this here and then put this as a API key and then username I should put my email
address let's put that so now you can see after putting these all these details it's showing that connection and credential created successfully it means that successfully created a connection And credential now what you have to do I have to go to this flow designer go to this action and simply go to this J and now what I want first thing first I want to create an issue so let's go back and then under this issue module you will be able to find out that one call create an issue we should do that so create an
issue I should select that so once I select that you can see that the first thing is mandatory called project key what should be the project Key simply I click that and all these three uh projects available to my J is which is showing right now so if I click that view all project you can see I have three project and these all three project are showing the question is that for which uh project uh I'm going to use that so I am going to use that for training so I'll select that project equal to
training now I have issue type I should select that issue type what should be The issue type my case is the story now I have summary and description what should be the summary summary should be come from the story short description and description should be come from the story description so I'll click there p IC can click there and then Story related here I'll do again and then short description similarly for description I'll go click here Description if I need to be put any additional field I can click that plus sign and then I can
put any of these additional field if I think I should put that I'm not going to do any additional thing I'll click done so what will be happen with the help of these steps it is going to be create an issue then click plus sign action after I create successfully create the issue I should put this information to my story table so I'll click this uh update Record and then here what I want to update I want to update that story record which is getting created which field I want to update I want to update
that ID field ID field should be from where I should get the ID field that create issue action will return some ID I'll pick that from here create issue and then issue object and it will return some ID I'll store that similarly I'll go back here then I'll go and put the key and I am going to store that key From this here so I'll just remove this one and then key and then lastly I need the URL so I'll put this URL and do the same steps okay so this ID key and URL are
these three Fields service fields are mapped and from this create issue actions object so create issue actions um return this three value so that we are going to store here Simply Save I'll click this three dots and then I will uh Click this flow reporting setting and then I'll on this so that I know that what what is uh happening so I'll just do that and then click active and then active this flow so this flow is going to be activated and then this flow is going to be run whenever I'm going to create a
new story so this flow is right now activated now go back to that uh service now and then open this story so I'll go and then going to create a new Story so let's say I'm going to create a new story I'll click new button and then I'll say that new story and then I'll put that new story description here and submit that so once I save that the expectation is that this story should be automatically created to the J board so let's go back to this flow deser and click that execution you can see
that uh if I however about that this flow is just now Executed and completed so I'll click that and you can see that issue created this is the issue created and this issue is updated you can see this issue got updated you can see okay and then I got a key number called one uh 1 027 this is the key and this is the URL that I have received that now go back to this u z board and click this trading projects and if I go back to this Backlog and if I scroll down that
you can see that that 17 Story the new story that we have created from the service now site it's actually showing here we can also go to this uh service now and I can see that this is the URL that has been set here now if I go back to this boat you can see that nothing is showing in the boat right all these are showing in backlog right for that what I'll do I'll go to this backlog basically I need to be actually uh start a Sprint and Then I will simp simply move this
story to that Sprint and then click Start Sprint I'll click the start so you can see that right now in the boat the story that I have created from the Serv now is showing right now okay now you can see that we are actually storing these J details here right train uh key and ID these are the information we are storing here right now what I'll do I'm going to create or Let's say that I'm going to update something so if I update something here into that um story that update should go and reflect in
our Zer okay for that what we'll do we are going to create another flow so we'll copy this name and then go back here and I'm going to create a new flow again call instead of create I'll say that update okay and click submit now go and click this add trigger Condition then this time it should be update and for which table I'll say that rmore story and uh run once no for each unique changes and then click done so whenever any update will be happen it should trigger this flow what action I'm going to
do that I'll click this action go to this J spoke and then I will pick this update issue now update issue is nothing but uh Let's say that I want to put I or I have to put the issue ID how do you get the issue ID I'll go to this Trigger story record and I created one field called ID that I'm going to put that now you can see that this add Fields value is right now read only for me why because uh I for first time I should try with not Dynamic I'll put
this here called Static value it will start Fage all the fields present to this uh issue ID and then I'll just remove that and Then put this Dynamic one called story and then ID okay and then what field I want to put that let's say that I want to put that summary update so if any summary is going to be update that summary should be reflect there story short description and if description updated I should update that their description so I'll put they called description okay and then simply activate so now this flow also activated
Now let's refresh this uh story and if we see that this is our uh train 18 story and if I go back this is the our train 18 story I say that here called story new this keyword I'll just add and then save that what will be happen it should integrate and it should update to our Zer story also so if I refresh that you can see that 18 story got updated so this way update also works so I'll click here three dots and then um I'll just say that copy issue link and Then uh
you know opening a new tab you will be able to find out that so you can see that our uh you know story has been opened here or issue has been opened and you can see this is the um new short description I can update again called service now test all these updation will run and send the data to the uh J so I'll refresh that you can see service not test so it is getting updated similarly I can Update that call this description and this description should be updated there so I just updated this
description this description should be updated here also you can see the description got updated so this way you can integrate service now to the jira with the help of outter boox J sport that help you to integrate from service not to J without much coding or much uh creating of custom action so that's it for today if you have any question let me know in my Comment section thank you very much have a great day hello everyone this is the day six of the integration Hub training in this day we'll talk about that b directional
Jas integration spoke in last day we talked about that service now to the J integration so this this is we call that outbound integration right so we are sending the data from service down to the J right but what will be happen if something update in the J site how do we receive that into the service Now site then we can say that it's a bir directional right so first we are able to send the data from service down to the jira either by the custom actions or maybe that jira spoke but how do we
receive the data from jira to the service now whenever any issue is going to be updated to the J how do we receive that for that we are going to talk about that J bidirectional integration or W integration so let's go back to the service now instance and understand Further so this is our service now instance and this is our J instance and if you recall that these two instance we are integrating between service now to the J in our last class now what we are going to do that first we are going to do
something so that any update happens to the J site we supposed to see that into our service now site so if I go back to the store stories and open the stories so this three story we have Created um last time right so if I do j2a so this is the story we have created into the service now s side and this story should be um present to the J let's see that so if I go back to that so this is the uh Trend 18 so if I go back and 18 so this is
the story now what will be happen if we update here let's say that I'm updating here from the called test one is it going to be updated to the service no site definitely not so it is Not going to update to the service down site because we have not do such configuration so that it can update um from J to the service now for that we have to do a configuration first thing first what we have to do you have to type called jira so if you type the Z you can see that there are
um um module called Z you can see this is the application under this application you will be able to find out call Z wook registers so this is the First thing we have to click this J wook Registries once you click that you can see that uh this table is completely empty you have to create a new uh record here so first I'll click this new then you can see the path is uh automatically populated now here we need to put the name what should be the name let's say that I'll put my instance name
so I'll copy this URL and then put in a name so this is my name now here we need to put the token how do we uh get this token We'll click this and you can see that after you click that it is going to that a table called token verification so this is a table called token verification it is pointing to this table so we are going to create a new um record under token verification also we click that and then let's put the name equal to token verification called snow expert rit. lean. now
after that you can see there's a token option right so we need to put Some token or else you can click that generate secure token we click that it will generate a token and paste here and click submit so now you can see that the token is actually created callx rit. lan.net I'll select that token and submit that so first thing first the jira wook registry is completed you can see this is the jira wook registry I have created after that I actually go to this called token uh verification table and create Another record called
token verification here I put this um my name and then I click the generate secure token it's generated token and that token I'm selecting here once it is done I'm going to click that call back URL so once we click this call back URL I should be able to get a URL so this is the URL that system automatically generate I should copy this URL so let's copy that once you copy this URL you need to Go to this uh J and then you can click this uh settings and then here you have a options
called system you can go to the system under the system if you scroll down there is a options called wook so what is the wook we'll discuss this uh in a high level wave Hook is nothing but whenever any uh event occurred into the system for example whenever any uh issue is getting created issue is updated or maybe issue get deleted into the Zera side it will it Have a options to send the data to the third party that called wook so we are going to create a new wook into the Z site and then
here under this URL I'm going to put that URL that I have copi from service now so this is the URL I going to pop paste here now if I scroll down that you can see that for which event this wave hook or this wave Hook is going to be run let's say that if any issue update this wave hook should be updated so it means that whenever any uh Um issue is going to be updated at that moment this wave Hook is going to be triggered to this end point that J end point okay
so let's save that so let's understand one more time I have created one um J registry here under this J W registry I have put this my um snow expert rit. a.net and then I have selected a token and after that I click the call back URL and I have received a URL now I have visit that call uh new o listener I click the Settings go to the system under this system I scroll down and then there is options called wook and there I have created a new wook with this endpoint and then in
this uh uh you know event what event I have selected I have selected called issue updated so any issue is going to be updated at that moment we are going to um trigger this wave hook also I'll select that uh issue creator also so if any issue created into the uh jira site directly or any Issue is updated to the J site this wook is going to be run and then after that I will just save that so this is done now we have to visit this um service LW site and then here you can
see that J webook routing uh policies is the here if I click that you can see this table also empty and this all configuration comes once we install the G spoke so if you don't have any J spoke this configuration will be not available so if you are talking About that J wave routing policy jbook registry so this is comes under J spoke now here I'll click this new button and then once you click the new button you have a options called label so you can Define the label so I'll select that call um my
URL so I'll go and then copy this URL and paste here and the way you can U put this UI policy order similarly you can put the order so this is the order I'm just putting zero and then I'll say The default answer and here you can put the condition like if issue description start with this one issue priority is this one you st issue status is this one Whatever you can put any kind of condition here whatever is available here so I'm not going to put any condition here I'll click this answer here once
we click this answer here you can see that it is pointing to the C half flow which is nothing but the flow or S flow so here you can see that it is Pointing to that c half flow where I can select any s flow okay so what I'll do I'll before I selecting that I'll go and visit that flow designer module under this flow designer you will be able to see that there is a one subflow created by default so I'll go here and then I'll go to the subflow and if I search with
that calleda as application you can see there is a one subflow which is created by um service Now itself so you can utilize that you can start customizing or you can make a copy and then um use that so this is the sof flow which has been created by service now you can copy that what I'll do I'll make a copy of this one I'll copy this subflow and then I'll click this copy so it is going to be copy this soflow and here let's see I am able to enable that reporting or not yes
I'm able to enable the report I'll click this update that and then confirm so This is our new subflow which is copy of this existing out of box one and then here I'll just update this one go there instead of this one I am going to select that our new copy one so I'll click here and then put this one so that it can call our copy one and save that so in uh high level whenever we are going to update any issue or whenever we are going to create a issue into the Z side
it is going to be called this soft flow this sub flow and in this subflow There is nothing it have some only logs and there are couple of inputs are there so if you see this sub flow and in this sub flow you can see there there are couple of objects are there for example this issue is the object under this issue object you can see this ID right so we have a ID and this ID is nothing but that some um J ID which we are also storing under this stories table so we if
you see that under the stories table we are also storing some ID right So if I open this this ID you can see here also we are storing that right so this ID also we are storing here so what I am going to do that I'm going to customize this flow so that whenever any modification is going to be done into this J side the same updation should be come to the service D site for that what I'll do I will just uh you know click done here so first thing first what I'm going to
do that I'll click this call uh action and then I will uh click that Look up and then um I'll click that look up record okay so what record I'm looking up the record I'm looking up is nothing but the story table so I'll search called The rmore Story table I'm going to uh check that story table and then what is the condition condition is that ID so in the story table I have created a custom field called ID which should be match with that subflow input issue and then ID okay okay so this will
return me a Record which is lookup record on the RM story after that I should do an update so I'll click action and then before that I'll put the if logic if this lookup record this lookup record status is Success it means that I able to find out a record with this ID then what I'm going to do that I am going to update that record so I'll click this update update record and then which record I'm going to update the same Record which I am able to find out that so I'll click here lookup
record Story Record which field I'm going to update that short description field and then description field because so far we have integrated that short description and description I'm going to update that and this short description and description from where I should get I should get from the sub workflow inputs and then issues and then there should be field called summary and for description there Should be a description so we are going to get from there call description okay so this way we are going to update that record okay in case if we are not able
to find out any record so this is the if condition in case let's say that I'm going to create a record into the um G in that case I'll put that else Block in case I'm not able to find out any record I'll go to this action and then I'll search for the Create record so create record or I'll say that create record I'll click that and which record I'm going to create that I'm going to create a record onto onto that rmore story so I'll put that rmore story table I'm going to create that
which all field are there so we have a field called um short description I'm going to map that and then I'm going to map that description I'll put that Description and then I'll put that ID and I'm going to put that key so these four field I'm going to map that so in case if I'm not able to find out any record now from where I should map the short description short description should be mapped from here issue ID then description should be mapped from here issue description ID should be mapped from this call Here
ID and key should be maap from let's see do we have anything called key so probably we can map that self one and then publish this one so let's see so this sflow is published right now so this is the 18 um issue and the short description is called service not test service no J so if I go back here go to the backlog under this backlog this is 181 so let's say I'm going to put that call service not test 1 2 3 4 5 and click Enter the moment I hit enter it should
call to our uh flow designer subflow let's see execution and it called that and it CAU an error so just open that you can see that uh the requested flow operation was prohibited by security rules um so let's see so it's not able to query on onto that particular table because this subflow is going to if I go and see the properties you can see this sflow is running user who is in initiated the Session I'll change that to the system user and then update that so that it will run on behalf of system not
that actual user because this all operation is doing as a guest if you see that this is created by guest so run as guest and click publish and let's go back to this our um jeta and then try to update something and see what happens so previously it was running as A guest now it should run as a system user so if I go back here and then update call 6789 and then go to this execution you can see it's cute let's click again it's completed right now if I open that you can see it's
successfully updated that if I go back to the service now you can see that from the service now also it is updated so this way you can uh do bir directional integration if you have any question let Me know my comment section thank you very much have a great day hello everyone I'm Rohit and this is the day seven of the integration Hub training in this day we are going to talk about that Zoom spoke in our last day we talk about that Z spoke we talk about that how to configure that bir directional Z
spoke and in this day we are going to talk about the zoom spoke so let's understand what are the things we are going to do with the help of Zoom spoke first thing First Zoom spokes is a PID uh plugin so you should talk with your manager before you use this Zoom spoke secondly let's understand what are the things we are going to develop with the help of J spoke the first thing first is that we are going to create a P1 incident into the service no site once we created a P1 incident to the
servic site we are going to create a zoom channel that Zoom Channel we are going to create for communication purpose after that once The zoom channel is created all the work notes let's say that we are typing something into that um service now on the particular incident and then all the work notes is going to be passed to that channel once this uh passed to that channel what will be happen there will be a button show into that incident form called create meeting once you click this create meeting it will create a meeting and that
that meeting link is going to be posted into this uh Zoom Channel so these are the requirement that we are going to fulfill in our today's session so let's go back to the service now and see how we can configure all those Stu one by one so this is my service the instance and then I have visited called Zoom app Marketplace here so you can directly search called Zoom Marketplace and then you can visit that and create your account there so once you done this creation of the account into that zoom and then uh once
you open The service now first thing first that we have to know that the zoom spoke is installed in your service now instance or not to do that you can go to this flow designer module under this flow designer module you can go to this connection and then under this connection you will be able to see one uh card called Zoom you can see this is the zoom card is showing it means that your Zoom application is Installed now if you go to this actions also under this actions you can see that there are um
application called Zoom spoke so it means that Zoom spoke actually installed in our service now instance in case it is not installed in your system you can visit that store application store. serv.com and there you can install Zoom application and again it is a chargeable you should talk with your manager after that what we have to do let's open this incident Module I'm opening this incident module and then I have created two Fields under this incident uh table let me open that so you can see I have created one sections called Zoom under the uh
this sections called Zoom I have created two field one is called meeting link another is the channel link so here I'm going to put this channel link and meeting link through the in integration so these two Fields I have created now let's go back to this flow designer first thing first We have to do connection setup for that I'll go to this connection and then I'll go to this view details and here I'll click this configure once I click this configure you can see that the connection URL is showing that https slz zoom. ask so
that is okay here we need to put that o entity and then here we need to put the client ID client secret so how we get this client ID and client secret for that you need to create a um application into the zoom so the way we Did actually in the Z created a API key this is not the same way Zoom we have to create a application so in this uh Zoom Marketplace we have to uh click this develop and click this build app once you click this buildt app you can see that app
created is showing that and here we can rename that name let's say that service now I'm putting this app name called service now and here it will be uh admin manage and here you can see the client ID and client secret I'll copy this client ID and then paste here and then I'll copy this client secret and paste [Music] here here I need to put this my instance name and then copy this whole URL and paste here call O redirect URL and then what allowed list I'm doing right now these two steps for example my
instance name is called abc. service now uh.com something like that so you can put your Instance name and then after that you need to click this call configure get o token the same name should be pasted there after you put this information uh you have to go to the scope options so scope is means that what type of access you want to give them first thing first we are going to create the uh Channel and we are going to create or trying to post the message right so we'll go to this team chat and then
enable all these options here so each Options have a various meaning you can read the documentation and you can put that then I'm going to create a meeting so I'll go to these meetings stabs and then I'm going to give all these meeting access here and then I'll go to this user sections and then select that and click done so our app is created into this uh in uh Zoom place now we have to click that get o token options to the service Now once we click this get o token you can see that it's
open in a popup mode here it is asking for this um account permission what are the permission we are asking profile and contact information calendar setting these are the uh you know information or permission we are asking so we just need to be allow them and once you click allow you can see uh it will be refresh and then it will be set up the connection will be set up so you can see That default connection is set up and then it have a token and this token is automatically expired after this time so we
got a token now the connection is extra successfully now we can do some integration okay what is the first integration the first integration is that whenever incident is going to be created as a P1 we are going to create a channel right so let's do that I'll go back to this flow and I'm going to create a new flow let's say that create Zoom channel so our um flow is created let's say the trigger condition so record is getting created on which table the incident table so we we'll select the table Al to incident after
that we want to put the condition what is the condition the condition is like whenever this incident is in P1 or priority is one at that moment we want to run this flow so we'll say that priority is one or critical at That moment we want to run this flow what actions we want to take that the first action is that we want to to create a uh Zoom channel right so we'll click this zoom and then here I'll we can see that one action called create channel if you click info option you can see
that it's create channel um so in these things we need input what is the input the user ID the user ID of user on which behalf of this channel is getting created the members and then Channel Type so we are going to select this option as I am using the free account so my I only have one account so I'll put my email address here now here I need to put the name of this uh channel so let's say that the name of the channel will be called incident Das short description so I'll put this
call here incident number short description will be little long but I'll just put the incident number for the timing and then type will Be the new chat that's it I'll click done so once we create a channel uh or once we created the channel L to the zoom site I want to paste this channel link to our um service now incident module so what I'll do I'll go here and then action and then I'll do that update record I'll looking for update record and then I'll select that update record and then here under this record
I'll Select this incident record and which field I want to put that I want to put that channel link select that and what should be the value this value should be come from this Zoom so I'll select that call Channel ID and simply activate this flow and then I'll enable this flow uh reporting one so I'll go and then enable this flow reporting settings I'll just enable that all right now if I Refresh this uh you know at that moment this incident and if I open my zoom you can see that I have a team
chat under this team chat I don't have any uh you can see anything any Channel right now so let's say that I'm going to create a new incident so I'll say that incident and I'm going to create a new incident as a priority U is one or the critical incident so let's pick some user I'll say that able tutor Test high high and then uh this priority is critical now if I save that it should create a uh you can see um it should call this flow designer flow and then it should um create a
channel to the zoom site let's see you can see that incident created now if we go to this flow and then go to this execution first thing first you can see there is a one channel automatically created this channel is got created and If I go to this execution you can see the zoom Channel creation the flow is completed and then here if I see that the zoom uh you know in under the incident the channel link got updated so this is our Channel link now whenever we put any kind of work note that should
go to this uh Zoom Channel and paste it here right so let's do that that what I'll do I'll go to this flow designer again and then I'm going to create a new flow again Call now trigger condition what should be the trigger condition update table is incident condition is let's say that work notes changes done and this should be for each or for um every update done I'll go to this action first thing first we'll select the zoom and then we are going to uh send or create a message so we are going To
uh say that send chat message and then for on behalf of which user I want to send I'll put my email address here I need to put the channel um so how do we get the channel we have the incident incident have a this channel link we'll get from there so we'll go here incident record and then Channel link what should be the message message Should be that our work notes you can see that this work notes uh this type is uh called Journal input it means that it is not going to be return that
uh you know string it is going to be return return that journal input or you can say that um the type is a journal input so we need to be convert to a string field so let's do that to get this work notes uh in a string format I'll open my Notepad you can see that I have a code simple line of code Called current. work notes. getet journal entry one which will return a in a string format called all um the work note so I'll copy this one and then instead of this one I'm
going to write the code here and then here what I'll do I'll say that return return FD data dot trigger Dot and then paste this one so this code you can see that we'll return the current uh or the work notes of the Latest work notes I'll click done and then just activate this flow after activating this what will be happen if any work notes we are going to paste or putting here in our um incident that incident is going to be pull this um this flow and then via this it is going to be
sent the message let's see hi testing something like that and then save that so what it will be happen we just save that and and if we go to this flow Execution it should pick our flow you can see it picked our flow and let's see you can see that under our Channel we got this message called the date with this user and then High testing so this way we can send message to our um channel so that's the second thing the last not the least we are going to create we are going to show
a button called um you know called um create meeting so once somebody click That what will be happen it is going to create a meeting and then um that meeting link we are going to paste here into the service now as well as we are going to uh put into our um this channel here right so let's do that for that I'll go back to this flow designer and then I'm going to create a subflow called create meeting so I'll say that create meeting let's put this input parameter so the input parameter is called Um
incident number so this is our input parameter and this is a string done and then what should be the output parameter output parameter will be called Zoom link that's also a string okay this input parameter is a mandatory done what we are going to do first we are look up or we are going to query to this incident table for that we are going to Put that look up record and then which record we are going to look up we are going to look up to that incident table and um number is the number that
will received through these inputs right so we'll get a record and once we get the record we are going to um you know create a meeting so we'll click this actions and then go to the zoom and then if you scroll down you have a options called Create meeting you can select that create meeting first thing first is that what should be the the user ID or to whom on behalf of that you are going to create this meeting let's say that I'm putting my email address now what should be the type okay so you
can put the Instant meeting or you can put any time so let's say that I'll put this uh called uh schedule meeting and let's say I'm going to put that for the timing I'm putting the static time you can put or you can write in simple quote and then put that here I'll put the duration is 30 time zone um let's say I'll try to F the time zone so it is a time zone is a dynamic component it will take some time and it will show here what should be the topic the topic should
be called incident [Music] number Dash short description that's it let let's see that time zone is fed or not it's taking some time to fishing the time zone but normally it came up within uh few minute all right so we'll click done once we receive that um we are going to set output called flow logic and then here we are going to set that um assign soft flow output and then click plus sign Zoom Link we're going to set that that output as a zoom link to home that will receive from call meeting object and
then um we can say that joining URL and done so this way it is going to be create or it is going to be uh actually all right so this is our um sflow we're going to publish that sflow and this soflow can be run in your background script or in your any of these um places if you you want to put that so let's say that I'll go here and Then here you can see that create quote snippet this will give you the server side script so we'll copy that whole script and go back
and go to this UI action and I'm going to create a new eyi action call create Zoom meeting and here under This Server SI script I'll paste whole code let's remove this block here all right here as a input we need that incident number so let's put that Current dot number this will return as the incident number and under this Zoom link you'll get that Zoom link so we'll put that this is our output we'll put that current dot uh this one called meeting link you meeting link so this will be our meeting link that
we are going to update that so meeting link equal to this is the variable where it is going to be stored this Zoom link we'll put that and then We'll put that current do update so what basically I'm doing that I'm going to create a new ey action that new ey action have one input parameter under this input we are going to pass this current number and then after processing this it will return me a zoom link that link I'm going to put into that meeting link and then just going to update that so that's
it I'll just save that you can see there is option called create Zoom meeting right so if we click That what will be happen if we click that what will be happen it is going to be create a uh Zoom meeting and then that link is going to be pasted here right so let's click this and go back so it create a uh it should create a zoom meeting and you can see the meeting link is pasted here here you can see and if I go back to this flow designer I should be able to
see now the Question is that if I see that uh go to this home and you can see this meeting is created because I have not able to select the time zone so it's created that meeting but what happened it did not able to paste that to our channel so team Channel under this team Channel it did not able to set that right so what I'll do that under this subflow we created that I am going to put one more action here so I'll click plus input and Then I'll put that call uh post m
message I'll go here and then send chat message and then I'm going to put this message equal to this meeting um link here joining URL and then here user ID is my user ID to whom Channel or to what channel we'll click here lookup record incident record and then Channel link will select that so I have added here so it will Create a meeting link and then it will send that to the chat let's publish that and now if I go back to this incident I'll just simply remove that and first save that for testing
purpose and click create Zoom meeting it should create a meeting it should paste here and then um uh it should uh paste to this channel so click create Zoom meeting you can see the zoom meeting created and if I go back to this our chat you can See that that Zoom meeting link is also pasted here so this way you can do a lot of kind of integration there are a lot of others action are available you can utilize that and if you have any question let me know my comment section thank you very much
have a great day hello everyone this is the day eight of integration H training in this day we are going to talk about that Zoom bir directional integration our last day we talk about that Zoom spoke and with the Help of integration Hub we are able to create a meeting we are able to put that all these detail in our meeting chat now in our today's sessions what we are going to do that we are going to uh do certain things called Zoom bidirectional integration with the help of Zoom bidirectional integration what things we are
going to develop that the first thing first we are going to develop that whenever the meeting is created right so meeting link is going to created by the Zoom spook but after that let's say that somebody meeting started and then uh uh meeting uh participant is joined or participant left or meeting is getting ended all this track we are going to put in our work notes in the incident work notes and then as we know that all the details once we put the incident work notes these details is going to be copy and pasted to
our Zoom um channel so these things we are going to develop that so this is we call the Bidirectional integration because the meeting is going to be start from the zoom site and then participant is going to be joined from the zoom site with the help of event and wook we are going to receive all these uh details and we are going to paste it in our uh service now and then from the service now we are going to again send to our uh channel so let's develop this one uh the zoom bidirectional integration this
is our service T instance and this is our Zoom Marketplace here we developed a application if you remember that if you click the manage here you can see that all the application present for this Zoom Marketplace you will be able to see that so this service Now application we have created yesterday and you can see it's in a drop state so if you open that actually it's in a development phase so that's the reason it's in drop state with the help of client ID and client secret yesterday we are able to connect And we are
able to create the meeting right so now today what we have to do you have to click this access options and then once you click this access option you will be able to see that two things one is the secret token and another is the verification token with the help of this secret and verification token we are going to do a event um generate we are going to generate the event and that event we are going to send to the service now so first thing First if you go to the service now and then in
the left navigation type called Zoom you can see that uh there are uh under the zoom spoke there are three application or module are available the first module called phone number that we are not going to discuss we are going to discuss about that Zoom webook validation we'll click here and then you can see at that moment there is no record uh in outter box what we are going to do that we are going to create A new uh Zoom wook uh validation let's say that I'm going to put that Zoom under this secret token
what we have to do we have to go and then copy this secret token and paste there so I have paste that and then you can see that there is one more options called verification token under this verification token we have to copy that and then paste there so let's put that verification token and and then we just have to save that so our Zoom wook Validation record is created successfully once it is created now what we have to do we have to scroll down here and then we have to just enable this event subscription
once you enable that you can see there are uh various event that you need to be selected so first event is that what we said that I'll click this add event you can see there is a one option called add events so click that and then what um things we want to Do that all these things we want to do through this meeting so if meeting is started we'll send a event if meeting is ended we are going to send that event and then uh if uh any participant join we are going to do something
right you can see that participant or host joined meeting and participant or host left the meeting so these are the four event we are going to be uh um select at that moment and then if any of these things happen What will be happen it will going It is going to be trigger a uh you know uh event click done now here we need to put the subscription name so let's say that I'm putting that service now and then we need to put this um you know the end point of your uh you know the
service end point where it is going to be hit that for that actually I have uh copy this uh this should be the end point for this integration you can see see this is the end point we'll copy that and then Paste here so this is our end point uh for sending the event here I'll replace my instance name and just simply click continue all right so my access part is set up right now what we'll do Zoom webook Registries you'll click that and you can see out of box there are various options are there
so out of box there are various record are created here you can see these are the record created here so let's say that if I open or if as we are dealing with the Meeting show match with trigger object as a meeting and you can see that there are three options are or three record are by default created once the meeting registration created event a meeting ended event and meeting created event okay so what we I'm going to do that the meeting ended event we needed and then we need to have some more options called
meet instead of meeting create a event we need uh actually call uh meeting started event so what I'll do I'll open This and then I'll rename that call Pro uh call meeting started event I'll just rename that and then um trigger type instead of create I'll just say that uh started so whenever the meeting is going to be started that time this event will be triggered now here we have a token okay this token is nothing but the verification token that we have pasted during this uh case if you see we have a secret token
and then verification token So we need to be put this verification token here okay or else you can go to that and then under this access you can copy this verification token and then paste here so what I'll do the meeting started here I'll put this verification token meeting ended event I'll put this verification token okay so this two things are done these two are SED whenever meeting is going to be start whenever meeting is going to end it should call this wook Registry and what it should do it should call this s flow we
have out of box we have a sow called process meeting event this subflow is going to be called with these are the object now what else we need we need also whenever uh participant joined we need that so that's another um you know event we need so let's say that that um so if I show match with that right now meet with the meeting you can see um there are some uh meeting started event Meeting ended event meeting participant join meeting participant left so these four we are going to use that and all these we
are going to call these process meeting events uh sflow so let's go back to this flow designer now open this flow designer go to sflow show match with that Zoom spoke and you can see that we have a uh called process meeting event so this is the subflow is attached here called process meeting event this subflow we Cannot customize because it's a read only what we'll do we'll copy this one at application is a global so we don't want to create this under This Global we want to create under Zoom spoke so we'll click that
Zoom spoke and then click copy so what will be happen it is going to create a uh subflow in a zoom scope so let's see so it's created that let's go and check the properties and you can see it's under the zoom scope uh this uh is created now what I'll do here I will Copy this name so copy this copy processing event and then update here all this s flow because we are not going to call this out of box s flow we are going to uh call our own copy of custom sow we
paste there so what will be happen any meeting started any meeting ended all this is going to be called these events all right now go back to flow designer and then publish that we should publish that so that it can call this um soflow now go Back to my zoom you can see that under this Zoom account there are two meetings which are showing right now and these two meetings are created via our uh service now Zoom integration for this incident right so if I start [Music] this let's see that our execution pick this uh
flow or not it takes some time sometime and maybe for example I'm just ending that and let's see what is going to be happen So meeting started and meeting ended so now you can see that under this execution our copy of processing meeting uh twice call because once for started once for ended so let's open that so if you see that under this logs uh one uh event name call that uh meeting ended and then if I open another one um that could be for meeting started so whenever the meeting is going to be start
or whenever the meeting is going to be ended for both the cases it is uh you Know uh actually calling our s flow now what we have to do if you see this objects here under this object it have the host ID it have ID it have U ID so let's do one thing um this is the ID uh probably the meeting ID what we want to have that we want to create one more field under in call meeting ID and then I want to store that meeting ID so that we can find out that
for which record or for which things it is actually so let's go back to this service now and then I Will uh open this incident module and then I'm going to create one more field called meeting ID okay so when whenever we are going to create the meeting from um our service now we want to store the meeting ID here first and then based on this meeting ID we going to look up and then we are going to update our incident right let's go back to this service now and then if you go back to
this our this is the sflow we have created actually the sflow Called create meeting yes so this is the sflow we have created called meeting uh link here you can see that um you know we are actually uh what we are getting that we are getting this create meeting so we are creating the meeting and then once we create the meeting uh What uh output we are receiving if you go to this this is the meeting ID we are receiving so this ID we should update that so we should return that meeting ID also so
meeting Link as well as we need that called meeting ID so we'll say that meeting ID and this ID should be um store and share so I'll go back here I have created one output previously it was Zoom link only and I have created another called meeting ID so this is the continuation part if you have not watched my uh previous video go and watch that you'll be understand that so I'm going to create one more output called meeting ID and then I'm going to assign that one More field call meeting ID and this meeting
ID I will receive from this uh create meeting meeting and then ID I'll get that done and then publish so I have added one more field called meeting ID now if I go and uh click that code snippet I'll get one more field there click three dots go to this uh code snippet this code was generated earlier I just need this meeting ID this uh Thing I'll copy this one additional things and then go to this UI action create Zoom meeting so that create meeting as well as it should store this ID here so previously
it was storing that meeting link I want to store that meeting ID also here so what I'll do I'll paste here this thing and then I'll copy this field name meeting ID and then I'll put this current dot meeting ID equal to This meeting ID so I want to add one more field so that in additionally meeting link as well as meeting ID should be stored right so it is done so let's say that I'm doing that testing 1 2 3 so this is our new or the incident updated short description and then click the
create Zoom meeting so you click that create Zoom meeting once we click that it should Create a new uh meeting put the meeting ID meeting link and then Channel link as you can see that it stored the meeting ID meeting link and then Channel ID now if I open my zoom you can see that um there is a one more meeting created called test 1 12 3 now if we start this meeting what should happen it should uh you know put uh the details into the work notes and then if I end this meeting it
should put that into this incident um work notes right so for that What I'll do that I'll go to this flow designer and this is the um flow we have uh this is execution flow so this is the S we have copy that so let's do that first thing first we are going to look up to the incident table so we'll go and then query to this look up record which record we are going to look up we are going to look up to the incident table so we'll put that called incident and what should
be the filter the filter condition should be meeting Link or meeting ID and this ID should be same as here under this object ID so this should be the meeting ID I'm expecting okay once we receive that so once we find out that incident if meeting started we want to uh put or we want to add some notes called meeting started right so that m we want to put that so let's go to this operation and you can see the meeting name is called meeting started we go to this uh subflow here and then click
flow logic If and then if we say that flow input event is this one so if the event is meeting started we want to put some notes there so we'll put that update record we want to put the work notes as a meeting started so let's do that incident record and then here in the field we'll put that work notes call meeting started and once this meeting is ended we want to put uh you know uh that meeting is ended right similarly if flow Logic else if then event event is meeting end dat I think
so so you can see that this event name called meeting ended so we'll copy that one and then uh put here call event is this one what we want to do we want to put that similar type of work notes we'll copy that one this work notes and move here and just say that meeting ended so let say that meeting ended so this work notes we want to put In our service now and then moment we put the on our service now then it should our actually uh copy that through that another flow and paste
to our Zoom channel so our subflow is right now published and if we go back to this Zoom right now let's say that I'm going to start this meeting so if I click the start meeting so this meeting is getting started and once we click that so this meeting is started now if I go back to This execution and you can see it's just now picked up and then we have an error okay so the error is that that it's a security policy it cannot run because this is running as a GU right so what
we have to do we have to go to this subflow go to this properties here we have a option called properties and then this properties should be you instead of user initiation will Mark as a system so that it run This flow should run as a system once you publish that it means that our uh this sflow is ready to use that now I'll go to this zoom and then start meeting again so let's go back to the zoom I'm going to start this uh meeting again once I have started this meeting again minimize that
it should trigger our um you can see the first thing first it's call and it started triggering that and if we go back to this incident and you can see that meeting started it say That meeting started and then once we ended this meeting it should put in our work notes called meeting ended so I just end this thing now you can see that it have mentioned that meeting ended meeting started so started and ended all these are done if I go back to the flow execution you can see that there are a couple of
uh call happen and it's completed now if I go back to this our Zoom Channel let's see the team Channel and here you can see that the moment we Put this in a work notes there is another flow which is triggered called um work notes and also it is pasted into this channel Chanel so this way you can do integration uh by Direction integration with the help of Zoom spokes if you have any question let me know my comment section thank you very much have a great day hello everyone this is Day N of the
integration Hub training in this day we'll talk about that multipart attachment so what is multipart Attachment so multipart attachment means that whenever you are trying to send a data from service now to the other external system let's say this is your service now and you are sending some data to other in that case if the other third party is only supported multiart data then uh we have to be uh do some special mechanism so that it can send the data from service now to the other system and the multiart uh data is nothing but a
specially for the Attachment so if you are trying to send some attachment from service now to the any third party and third party only supported multiart in that case we need to do some special mechanism so that it can accept that multiart data now question is that how can we send data from service to the third party with the multi part so m multiart only supported into the integration Hub so if you don't have integration Hub you cannot use the multiart data or you cannot send data From service now to the other system until unless
you are using that integration Hub now in today's class we are going to discuss about that from service now to the jira so external system I'm taking example as a jira from service now to the jira we are sending a data through the multiart mechanism number one how to send attachment from service now to jira and how we are sending we are going to to send through the integration Hub okay through the Multiart secondly send attachment from service now we are going to send the attachment and then received attachment in service now so whenever any
attachment going to be attached into the J site also we are going to receiv received and attached to the service now whenever any attachment is going to be attached into the service now site that attachment we are going to send so last few days we are talking about that integration Hub spoke we actually Discuss about the zoom spoke we actually discuss about the J spoke but in this class we actually building that custom multiart attachment there is outof boox spoke available for sending attachment from service now to the J or there could be a situation
where uh some third party for them probably there is no service to in that case it might be help you to create your own multipart attachment actions um to fulfill that requirement so let's see so this is our service now Instance and if you recall that earlier so what we actually did we actually connect with the stories module so when whenever we are going to create a story here the story is going to be create under uh J board Also let's say that I'm going to create a new story I'm putting a story called J
test so we already did integration uh in our earlier class so whenever we are creating a story and just clicking save this story is going to be automatically Sent to the J board right so I'm if I refresh that this story is going to be attached directly to this J boat you can see J test this story created and then this um you know key number is we are storing under this J details we are storing this ID and key all these stuff so we storing here now let's say that if I trying to attach
anything into this story let's say I'm going to attach something so choose and then I'm going to attach anything attaching Anything and once we attach that this attachment is not going to be Cascade here for that we are going to build something so that this attachment can go from this story table to this our J so that's what our requirement first requirement to fulfill this requirement I have go through this um J documentation you should go through this J documentation or any of this third party documentation whenever you are trying to uh do such kind
of integration So first thing first if you see that if I search with called issue attachment there are various uh API available and the last method called post and then in bracket mention that add attachment with the help of this add attachment we can attach some uh attachment to particular issue so now what should be our uh you know um URL so if you see this in the top the method should be post and then the URL will be this is your url here you need to pass your issue key and this Is your end
point and then once you put put all this information here you need to be sent attachment as a multiart if you see the top the name of the multiart from data parameter contains the file so it means that we need to send a data as a attachment or as a multiart so for that we are going to build our custom action today we already have outerbox J spoke but I'm going to use my own custom action for this requirement so that you can build your own Uh custom action for Future so first I'll go to
this flow designer module I'm going to create a new action so you can go to this action module you can click this create new and then click action it is going to be create a new action so let's say that J I'm going to put the name called jira send attachment click submit so this uh action is going to be created now what we have to do we have to take some uh input okay before that I'll click plus Sign and if you scroll down under this utility under this integration you have a options called
rest message you can select this rest one once you select this rest one you can see you can select that uh allies let's say that I'm going to put that J custom one once you select the Z custom one you can see that your base URL populated the method is uh buildt request is there are uh three options we'll select the manually then we should pass the Resource path okay what is the resource path if you go to this J documentation you can see this is the our DOT then after that this is our resource
path we'll copy this end point and then paste here under this resource path so this is called base URL then slash rest API 3 issue then this is the key so this should be dynamic and then we should pause these attachments okay now if I scroll down here uh little left we need to pass in a Authentication is username uh I mean my uh email address and then API token that we already done here in a h you need to pass this call x- atan token and then here we need to be passed as a
no dash check so we are going to put that same thing in your uh in our header we click this plus sign and this is the header key and the value is the said that no check so this is going to be passed as a header and this is uh static now after that if you see that we need to be sent As a multi part so we need to be send the data as a multi part so what we'll do we'll go up little bit here and then this time we are going to select
the method what is the method the method name if you see the scroll up the method name is a post we are going to select the method equal to post and then if you see that the request content which is showing right now text we already did that earlier instead of this text we are going to select that multi part once you Select this multi part you can see that we need to pass the name and then multi part type and value so let's say plus sign then what should be the name the multiart name
is showing right now called file so we'll copy this file and paste here and then what should be the value text or the file we'll select the file and then once you select the file you have a options called set content type from attachment set file name from Attachment so if you want to pass this from uh the uh the file name from input or attachment you can do that or you can put that from file name or you can put from input and you can select this from um attachment or content type so we
are going to select them from attachment now here we need to pass the value what value we should pass the value we should pass as a attachment C ID right so these things we need to be use that so we'll go to this input actions and then create To input one is that called issue key so this is our string and then another this is a mandatory and another thing is that attachment C ID so we are going to pass this attachment C ID and then this also should be mandatory these two are mandatory now
if you go to this rest message you can see this is a dynamic issue key we need to be make it dynamically so from here we'll go and then add this issue key so we'll click here inputs and issue key so this will Be a dynamic and then here if you see that the value this should be also Dynamic so from where you'll get that this is the attachment C side you'll get that once you pass this two and then um that's it and let's see that in if you go to this documentation after successfully
send this what should be your uh uh response so this this is the response you will get that so this is a response after successfully hit that you'll get a sample response and this is The attachment ID we are actually receiving we should um you know uh store that somewhere right so what I'll do I'll copy this sample one uh this sample response I'll copy and then go back here I'll click plus sign and if you scroll down under this integration you can see the Json person we'll put that and then uh from where we'll
get that we'll get from this rest response we'll click here uh rest message and then response body what should be the structure I'll paste This structure so I'll go and copy so I'll go and then copy this whole Json once you click that and you will have a option called generate Target once you click that the object will be automatically generated you can see these objects are automatically generated you can see so we'll just save this action or publish this action now let's test that and see if it is working so first we need to
pass that issue key so issue key is nothing but This is the issue key we are going to pass that so we'll paste that and then we need to pass this attachment C ID for this record what is the attachment C ID go to the C attachment table uh put this table csid equal to here and this is the attachment I'll copy this CID of this attachment and go back to the flow designer and pass that attachment C and run the test now if you click that uh your uh Execution you can see it's successfully
uh if I click the steps here and if you see response body I have received this is the response body I have received that okay now what I will do here I will go back to this U uh this story so I'll copy this issue link and then paste here and see that that have the attachment or not now we can see that the complete attachment is showing right now and which is automatically sent from service now to the J board so This way you can integrate hello everyone this is the day 10 of the
integration Hub training in this day we will talk about that inbound rest message so we know that what is inbound rest message with the help of inbound rest message you can receive some request from the third party so let's say that you are the service now and administrator and then maybe another third party this is a third party third party can send some uh data to your Service of instance and then to receive this data we have to use the inbound rest for that normally we create the scripted rest we created the other options but
in the flow designer also we have a option to receive that uh in our flow designer so we know that what is inbound rest so with the help of inbound rest we can receive some data from the third party but what is the difference between uh the scripted rest and then flow designer uh inbound rest the Difference between the scripted rest and flow designer inbound rest is that we don't need to write that much code we can simply Define into the flow and then as per the process we can process that inbound data and then
after we received the inbound data we can process and do all kind of operation rather than scripted r where we need to write the script for each and every uh validation we need to be write the script to create the record update the Record all these steps we need to do that so we understand the difference between script address and then flow designer inbounds right so flow designer inbound is L code we don't need to have that much uh coded as we have out of boox multiple actions with the help of out of boox multiple
actions we can actually um you know build with the low code so what is the benefit we know the benefit is that low quote right so we don't need to write that much quote and We can reuse as many time as we want so let's go back to the service now and see how we can Define that so this is our service now instance and in the service now instance if you go to the flow designer under this flow designer if you have enabled the integration Hub and then under this integration Hub if you uh
enable that uh all these plugins you will be able to see these options so this option will be only available if you enable the integration up so go And create a new flow let's say the flow name is that inbound once you submit that you can skip the tool and then click add trigger condition and this time you go to the application and under this application previously if you see that in our flow designer training we had a option called inbound email now we have a options called rest API asynchronus so this is the rest
API as synchronus help us to receive the request from the third party We'll select that once we select that we will have a options called which type of method we want to be select that so you can see that uh our end point is that API SL uh the um application name/ inbound rest and then here we need to define the method so let's say that our method is the post method and if you want to put some relative path you can put that let's say that you can put that uh inbound rest ABC or
something like that You can put that and here you can Define that uh for which roles uh it is or if you want to Define that any authentication require you can Define that I'm not going to uh that much details but you can see that we have a required authentication it means that you have to have put the authentication before you initiated this uh uh Endo so I'll just uncheck this one for the timing and then I'm not putting any relative path if you want to put the Relative PA you can put that after that
you can see and this media type by default it populate that application SL so it can only accept application SL dation and then under the body you can see there is a uh name called body here we are passing as a object under this object what all details are there nothing is mentioning here so you can Define your own body we'll discuss that little further and you can see we have a path parameter query parameter header Parameter if you want to do any kind of this things you can put that I'll just click turn so
what will be happen we have just created a rest API uh inbound and let's print that and see what is uh we are getting so we'll just click the actions search with that log click this logs here say that Hi and then I will print the body that we are going to receive that so we'll just go request body and you can see nothing is there inside the body so we'll just Select the request body click done just simply activate this one this flow now I will copy this Endo so this is our Endo we'll
copy that and go back to our Postman so if you have little bit about knowledge about the integration uh you will understand that what I'm doing there put this endpoint and then I should put that uh host name so this is my host name so I'll copy that and then put there under this host name okay so host name/ uh you know API SL G spoke this is the application name in Bound rest all right the method should be the post method as I Define that I'll select the post method and inside the post method
you can pass the body okay so we'll go to the raw sections and then let's say I'm putting some body called test and then I'm just for the testing purpose I'm putting the test and then this is the key and then value is that 1 2 3 and let's send that and see What happens so once he send that it should uh you know execute and I am getting the execution ID and let's go back to this our execution and you can see the inbound rest which is initiated and completed if you open that okay
so this one doesn't have any uh this properties doesn't enable so what I'll do I'll go here then I'll go to this flow reporting and then enable That update confirm and then run again this uh one so it is run again we'll go back to this execution again this is the second time it called we'll open that and you can see this is the lock which is printed and inside the lock we have actually received some empty right why we have received the empty let's dear that if I go back to this flow and under
this flow you can see that we have defined the body under this body we are Passing some data right so if I go back to here under this um payload we are passing a key called tast and this is the value called 1 2 3 so these things needs to be defined under here so we'll click the plus sign and then let's say that I'm putting that key name called test and this is a string so we'll put that string okay so let's activate that one more time and here under this locks instead of this
request body I'll click here go to this trigger rest and then Request body and I'm going to populate that test as a string let's save and and activate that so what will be happen if any value we are passing inside the test it should be visible so let's see that here uh we have executed that so let's trigger one more time so if I click the send option and then if I go back here execution it's initiated and it should completed now and if I open this execution and here you go you can see that
the value 1 2 3 that we have passed Here is receiving so if I put that 5 6 7 8 L and then uh hit send what will be happen I should be able to uh receive that so this way you can receive the request from the third party okay now the one interesting thing we are going to do that so let's do that first the interesting thing I'm going to build that right here if I go back and then uh I'm going to create a script add first so let's uh create a script add
and let's say that I'm putting a Name called the scripted T called t test for the timing okay I'll come to uh I'll I'll let you know that why I'm building that so I'll put the test under this G SPX and then here under this resource I'm going to create a method called post and then I'll put the test one here as you know that how can you get the body you can say that uh text or Json text Json and here we'll say that Json do Stringify request do body do data so what will
be happen if we initiated this one right so I'll put that gs. info and then here I'll put this whole text G and save that and also I'll just uncheck that required authentication for the timing and then save that so what will be happen in that case so if we initiated This end point this is another end point right so if we copy that and then instead of this one we can put this end point right so we can put this end point so what will be happen when uh instead of initiating the flow it
will initiate our script address right so let's send that and it should uh you know initiated our scripted rest and if I go back to this system lck I should be able to see this lck now you can see that I have received The complete body that I'm sending from this Postman right so what I'll do instead of sending that through the postman I'll copy this end point and go back to this J and open this training projects click the settings and then here we'll go to this uh system and then here I'll go back
here under this W I'll put this endpoint so let's put that so this is disable I'm going to create a new ook and then let's say that I'm putting uh this call and Point is here once we put this end point and go to this issue and then check that issue created and updated so whenever the issue is going to be created or updated attachment created or deleted these things should be uh you know trigger right so this is this event should be trigger I'll just uh and is there anything I need it no I
don't need any other things so I'll just uh create this uh oook so what will be happen if I am going to create any issue or I'm Going to update any issue this is going to be sent a uh request to our service now so once we receive that we'll understand that what type of things we are receiving okay so let's go back here go to this uh to this jira and I'm going to update one of these uh let's open this training projects and under this board I have an attachment under I think this
one no this one doesn't have attachment so Let's open this one so I think this one have attachment we click edit one and then I'll just put that 1 2 3 and save that so I'm just updating one of these uh issue into that uh J now go back to this logs if I refresh that I should be able to see the complete Json format so you can see I have received a complete Json format so let's open these logs and complete completely copy this one so I'll just copy that okay and then I'll open
the Json viewer and paste Complete body so this is the Jon body I have receiv received so I'll go and open the viewer so let me just zoom this little bit so if you see this uh Json uh the first thing first you can see that under this Json we have a time stamp we have a event name and then we have that issue event type and if you open this issue so this this is the issue one under this issue you can see as we updated the issue you can see issue ID is there
and Then after issues we have a Fields And if I little bit scroll down under this Fields you will be able to see that one interesting thing called attachment so under this you can see the attachments and if you see that this one have two attachment that's the reason we are able to see these two uh attachment so this way whenever you add it or whenever any uh update any issues you will be able to see the complete issue details from this Jon so what I'll do I'll go back here I'll just deactivate this uh
script address so I don't need this script add anymore I just uh put this or I just created this script address for seeing that what type of data I have receiving I'll go back to this flow designer and then here I'll say that in inbound request called issue so this will be my new name and once we update the name it automatically update the path of also so make sure that whenever you're updating that flow Designer name path will be automatically updated and here we need to define the body the first thing first we are
receiving called time stamp so we'll put the time stamp here the first parameter is called time stamp if you don't need that you just you can skip that so I'll put the time stamp so this uh parameter I need okay now under this you can see we have a called issue so under this J we have a issue we have a user so I need to be go Through the issue so I'll put that issue here so I'll go back and then create one more input here in the bottom call issue and this issue is
not a string it's a Json or you can say that object so we'll put the object here okay so issue is an object you can see under this we have a ID the first parameter is the ID s and then key as we know that whenever issue created updated or or anything happen you should have the three component one is the ID Another is the self another is the key so we are going to create the ID and key this two component inside that so we'll click that and then create that ID uh string format
and then we are going to create that key so this will be a key okay so issue will have ID and key and then after that you can see uh ID key and then we have a called Fields under that we have a fields we are going to create one more parameter called field And this is not a simple one it's a Json also we can select the object okay so Fields as a object under this Fields you can see if I scroll down we have a attachments so this is our attachments object so if
I scroll down attachments and this is not a object or not a string it's an array right so attachment is a array so we are going to create one more uh here called attachment under this field so we'll click that under this Field we are going to create a attachment so you need to go through or understand this uh process and this is not an uh it's an array so we'll select that array in a object so once you put this uh array object you can see that by default it populated called attachment child zero
and it is a read only because this is if you see that under this attachments we have a index 0 and then if I minimize that 01 so for that we are not going to change this one under this What we have to do we have to create uh the new key what key is that uh each have that S ID and file name so each array uh index have a three component uh in a Jon format called self ID and file name that we need to be put there so we'll put that called self
then this should be string um then we have uh ID and you can see ID is by default populating four because ID already we have initiated here so we'll just need To be remove that four keyword and then we have uh one more component called key I think so this is the uh file name ID self and file name so you have to put that file name here so we'll put that file name and just activate that once we activated that and if we update any issue what will be happen the issue is going to
be call our this inbound uh request issue update and then we will be able to see that request body so let's Go back to here and then if I just simply update call S and click okay so this this should right now call ourf Flow so let's go back here go to the execution and if I hover you can see it's just now called and if we click here and then request body you can see that we have a body under this body we have issue fields and then attachment each attachment have three component file
name ID self and these all are the attachment ID and these all are uh issue ID so 137 is the issue ID and this is the attachment ID so what I actually want here um in that case uh I want actually to be there is a table I have created um for the time being um I will show you that the table name called external uh tracker so this is the table name I have created and in this external tracker I am just going to create that data here so you can see that I have
um external ID internal ID API name Attachment ID end point these are the details are there for the timing I'm just going to create uh some of the record here to show you that that for three attachment or whenever we are creating a attachment this is here we are going to insert that so that just for the fun purpose in our upcoming video we'll do much more things here so what I'll do I'll go back here flow designer instead of lock I'll just delete that I will uh run a for Loop so I'll go and
then run the for loop on what I'll run that uh for loop on that um request body and issue and and Fields and then attachment so whatever array are there for all array I'm going to run a for each Loop and then I'm going to create a record into the external tracker so if you have three attachment it should create the three record here four attachment four record something like that so let's go back here and then create record uh this Action I'm going to pick that and then the table name is that external tracker
this table I have created to uh show you other thing so I'll select that external tracker table so first thing first I'll put that attachment uh there is attachment ID this inside that attachment ID I'll put that called for each child object I'll put the ID and then uh uh what do we have inside that we have Uh uh API name under that I'll just populate that file name for the timing okay so I API name I'll put that file file name we'll utilize this table uh for other purpose in our upcoming video Just For
Fun purpose I'm just showing you that so this should be file name so under the API name I'll put the file name so let's save that so what will be happen under this you can See we have a four attachment if I update that it will create the is a record here even if we update that or if we even we attach any documents it should create the record so let's say I'm attaching some attachment this is the fifth attachment I have attached here so it should call our flow and then it should uh create
five record under this external tracker table so click that external tracker uh so far there is no record created now go back to the Flow and execution and we have we got an error so what error we get let's see that uh scope does not have access to this table so we don't have access to this table uh because we have created this is the global table so I'll go back configure and then table and we are in the actually the jcope so that's the reason we are not able to create that so I'll just
uh create update this AIS I'll allow to This table now if we go back again I'm going to attach one one more attachment here we have six attachment right now and if I go back to this external tracker table um you can see the six record created so file name and attachment ID so this way you can create your own inbound request and then with the help of inbound rest API synchronus with the help of Flow Design you can create the Record we can read the record and we can uh do lot more things with
the help of this so that's it for today thank you very much have a great day hello everyone this is the day 11 of the integration H training in this day we'll talk about that save as attachment so let's say that you are pulling some data from the third party or you're pulling some attachment from third party how you can save that attachment in your service now that thing we're going to discuss in Our today's session before we talk about these things I need to talk about few more things let's go to the next slide
so far we have completed 10 days session let's understand that what are the things we have discussed the first we talk about that what is the integration Hub and then how you can activate the integration Hub second day I talk about that how you can create your custom action and then third they we talk about that connection and credential how we Can create the connection and how we can create the credential and then therefore we are able to create or you able to set up a j API payload and with the help of these all
these four sessions what we actually achieve we are able to achieve a integration from service now to the J so we are able to do a integration from service now to the J all are custom and then we are able to create whenever the story is getting created to the service now that story is going to be created Into the G so we are actually able to do this integration with the help of four days after that in the day five day six we talk about the J spoke out of box J spoke with the
help of out of box J spoke we actually did the same thing but we actually did that b directional so from the service now we are able to say send the data to the J and then from the J we are able to send um the attach data to the service now so we actually able to dat the bir directional uh Integration with that out of box spok so these two are out of box spok and these four are custom spoke now question is that how or why we need the custom spoke so if you
don't know or if you don't have subscription for out of boox spoke you can go through the documentation and you can create your own Uh custom action and utilize that so that's the reason I told you or I created this section now in the day seven and day eight we actually did the zoom spokes out of box Zoom spokes integration with the help of that we are able to actually create the meeting we are able to put that chat in our um um actually in our uh Channel now in the day n we actually talk
about that multiart attachment with the help of that we are able to send some attachment attachment able to send from service node to the J now in the day n we actually created inbound rest so instead of these all are uh you know um out of box we actually built our own uh you Know inbound rest and with the help of inbound rest we are able to receive a data or the information from J to the service now right so we are towards very towards for for the custom B directional integration from service now to
the J so we are very close now in this day we'll first uh recap those things all this together and see that where we reach service now to the G integration so actually we are going to build that service now to the jira integration all These are Customs from service now to the jira by directional integration so we'll able to send the data we'll able to receive the data so this is our goal so we are very close to that uh so let's uh go to the service and see where we actually reach with this
integration so we can actually use this um outter box and it's very easy to use that but we want to build from our custom action so that we can create our own action whenever we need it so let's go back to The service now and see that so this is our service now if you go back to the flow designer under this flow designer um if I show match with the published the published one is the J issue uh this is uh you know out of box one so this is the jira create jira issue
so this is our custom one you can see jira issue created so this is our custom one we created the custom action and then with the help of that we are able to send the uh information like Short description and description from the service now to the J and here after we received that we are actually putting that information to that comments instead of that we actually created two Fields if you recall that so we are going to utilize that so let's open the story module and if you see this under the story we created
uh uh custom some Fields right and that fields we are using that for outter box J spoke but we Are going to use that custom one so key ID and URL these three field we have created actually so we'll go to on so here we are going to use that or utilize that so what I'm going to do that instead of additional comments I would uh put that called uh ID and then I'll map from this J ISU created ID and then I'll one more thing I'll put the key and then I'll put here call
Key map that done activate so this is our custom uh action right so custom flow and custom action everything is custom so this is our uh uh let's show match again this uh J issue update this probably the out of box one so we are going to deactivate that so add commments this this is the out of box we are going to deactivate that so we don't uh need out of box one so everything we are going to build from the custom so we Go here and active true you can see that um the create
jira story is activated right now now if we are going to create a story it should create on under this uh jira boat Also let's see that I'm going to create a story so let's say that the short description is called Rohit J testing and description is the J testing okay and I'm just saving that once we save that the expectation Is that it should initiate our flow and then from the flow it should create a story under jira so we already if you see that if I refresh that uh under the backlog it should
be uh visible the story under backlog so let's and if I scroll down you can see that the Rohit cha testing this story has been created let's uh do one thing let's move this story to uh our current Sprint I'll just manually move that to current Sprint so it is added to the current Sprint and I should be able to see that story right now into this jira board you can see the Rohit jira testing is showing right now now if I go back to the flow designer and and then if you go to the
execution uh the first thing if you see that so this is created 1 minute ago and then we have three inbound request the first two are during the creation you can see these two are during the creation and one is after some time Right so if I open this create story which initiated and sent a request from service now to the jira now if I open the second one so this inbound request is the nothing but we have created for attachment one and as we don't have any attachment it is not going to initiate anything
so what I'm going to do that uh under this under this Rohit chir testing I'm going to attach some documents okay so let's say I'm going to attach some document Here so once we attach some document what is the expectation expectation is that it again should call our inbound request inbound request update let's see that you can see just now it call our inbound request and if we open that you can see that uh uh if I open the request body it have a attachment ID attachment uh URL all this and as per our previous
configuration it's uh actually uh you know create a record under this uh external tracker table right now this uh Once we attach something I'm just getting a call but how do you get the attachment and how do we attach to our story right so somebody attach some document here and that attachment has to be copy and attached to the story for that what we are going to do that I'm going to go through this J gate attachment AP I search that in the uh Google and if I open that issue attachment um API J you
can see that to get attachment we should call this I Mean to get attachment content okay so we have we have to use that this end point so this is our end point and if you see the end point that we are receiving so if I open that so this is the rest / api2 attachment then ID okay and here in this case attachment SL content SL ID so there is in between there's a Content keyword so if you pass this this end point what it will do it will get that attachment and then once
we get this attachment we can save this Attachment okay for that what we have to do we have to do some custom uh things okay so as we are building everything from the custom we have to do some custom thing to save this attachment into our story so now I'll go to this home screen and then I'm going to create a new action so I'll click this action and then let's say that I'm going to put that name called J attachment save so this might be my action name and then uh this application will be
Global And then I'm going to submit that okay so this is my um action new action so let's first create some input so I'll click that create inputs first thing first we have to know that where I'm going to attach that attachment so I'm going to attach this attachment under this story right but how do we know that first thing is that we need to be have that attachment ID so let's put that attachment ID so this is my first parameter if you See this uh in a documentation right so we have to have that
uh attachment this is the attachment ID we need to be pass that and then uh second parameter is that where I'm going to attach that so I'm going to attach this under this story so we'll put that called uh task number okay and this could be reference field so I'll put that reference and then I'll put that uh rmore story for the Timing okay and these two are are mandatory and then I am going to create one more variable called attachment name and this is also mandated so these three parameter I'm going to take that
first is the attachment ID second is the task number third is the uh you know attachment name now go back here under this uh and then go to this uh under this integration we have a uh rest we'll select that here we'll select the J custom one once we select the J custom On as you know that by default it populate that our host name now if I go back here and if you see that this is my uh you know attachment one attachment details right so I'll close that and then paste that as a
path and as you know that I don't need to pass this one so I'll remove that because this is the host name and here uh this is the uh ID that I need to be passed and if you see the documentation after attachment we need to pass this content so put that Content here called content slash we need to put the ID how do we get the id id will get from input parameter so we'll select that attachment ID okay so once we get this raised API uh this content and attachment ID I need to
save this attachment so we'll get the content actually right now once you get this attachment I need to save this attachment to this story how do you store or how do you save that to save that you have a option called save as Attachment you can just uh click that uh we have a attachment file name how do we get the file name the file name is nothing but we'll get from this attachment name and then here we need to be select that attachment file record we need to be select that attachment or where I'm
going to save that so we'll select the task number one so once you select the task number you can see that automatically rmore story name is getting populated okay now under this Output we need to be uh pass or we need to get the attachment uh service now C ID we get uh that let's say that service now attachment ID and how or from where we'll get that we'll go to the exit mode we'll get that from I think um uh response body we'll save that so let's save this uh actions first and try to
utilize that so let's if we go back here and this is our attachment ID one8 you can see that and if we go to this here and then click test then attachment ID is this one and then here we need to pass this task number so let's say that our task called Rohit chir testing so this is our story and then here we need to put that attachment name so let's say that I'm going to put abc. PNG at the timing and then run test once we run that it should expectation is that it should
F the attachment from here and then that attachment should be attached here so let's go back click that execution and you can see this is the C ID the uh the attachment C ID and if I refresh that I think there should be attachment attached to the story and here it's attached and if you go back to the notes you can see it's automatically attached here so it's successfully attached to our story what we need actually now our action is created now we need to automate this system because we cannot go to the this action
and click the test button right so we need to do some automation so that It can be automatically picked up right for that I'll go to this uh you know our uh flow and we have a flow called inbound request uh issue update if you recall that so this we have created whenever something some attachment is coming this should be initiated right it have a for Loop which actually creating the external tracker record I'll just simply delete that for the timing and what I'll do I'll go to this action and then under this service now
code if You search it call save something called J attachment I'll open that so this is our uh you know uh the action that we have created first thing first we need to pass this attachment ID how do we get the attachment ID we'll get here and then we we are actually doing the 4 each Loop under the attachment so we'll click here and then go to the 4 AG child and then ID now we need to pass this task number right how do you get the task number because this for return that uh Our
attachment and this is normally return if you if I go to this uh here this normally Returns what it normally return that ID of the uh story or uh ID of the jira story or jira issue right so what we have to do actually we have to go here and then this attachment name we can get that we can go to the for here and then file name but we need to pass this task Story number that's the important factor for that I'll click this plus sign go to This action and then I'll do a
look up okay and I'll click the look up record how do we look up that we'll get this uh J ID and we'll query to this story table and then we'll find out that is there any uh story is find out with this ID if yes we are going to attach there so this is our requirement so we'll go back here here we'll search the story called rmore Story table we going to search that with that ID so we'll put the condition equal to [Music] ID and ID is it should become come under trigger and
then request body we have a issue under this issue we'll get the ID so we'll get that and once we get this uh lookup we'll attach this lookup record here so we'll click that uh lookup record and story so this way we'll get the attachment and then going to be attached to our J so let's activate that and save that and see what is going to be happen so you can see Right now um our flow is activated and in this case right now we have one attachment for Rohit jira testing which is present under
this boat you can see if I'm going to attach another attachment and let's see what is going to be happen so first I'll just take a screenshot for showing this demo so I'll just take a screenshot of this one so this is going to be attached another attachment once you attach that the expectation is that it should call to Our uh you know uh flow designer and it should attach to our story so first let's refresh that to our service and here we go you can see if I go to this notes it's attached here
it's attached the old attachment and then this was the present so it's actually called twice it did not check that uh you know whether this attachment was there or not in service now it's actually copy both the attachment and store to the service now in our upcoming Video we'll resolve all this issue and then finally we'll be able to complete our bir directional integration till the timing thank you very much have a great day hello everyone this is the day 12 of the integration H training and this is the continuation part of the day 11
where we actually updating or whenever we are adding one attachment it did not checking that this attachment is present to the service now or not and it's directly actually inserting to the Service now for example if we go back to the story and if I open the story that is Created from the service now to the jira so this is Rohit jira testing that we have created and right now you can see this is three attachment we have right but if we simply update one of these uh let's say even the short description one what
will be happen it will simply add two more attachment to this uh uh story which without checking That these attachment are already present to the service now or not so let's fix that issue first so let's refresh that I think it should be uh attached there and you can see the five attachment is sh right now so 3 plus uh you know the two more attachment that is already showing here okay so these two are latest one and the uh you can see these two are created right now to solve this issue what I'll do
that I have Created one table called external uh tracker if you recall that so this is the external tracker I have created and I have actually clean up whole thing here okay now what I will do that you can see that I have uh API name internal ID attachment ID endpoint and right side I have external ID and external attachment ID so these fields are present what I'll do that uh whenever I'm going to insert or copy that I'll add these details here okay so let's do That first so let me open to the flow
designer so this is the flow designer I'm going to open that and in this flow designer what I'll do that before I'm going to uh let's go back to this actions uh sorry flow so this is the inbound request issue update which normally does that which uh you can see the look up record it look up to the story and then once we find out the story it is saving the attachment based on this attachment ID right so it is Look uping uh um that story and saving that right so what I'll do that I'll
add one more step here okay so I plus sign then look up record I'll look up first on which table I'll look up I'll look up to this external tracker table with that uh external ID an external attachment ID okay once if I am able to find out that then it is not a new attachment I'll just ignore that okay so let's do that so I'll go to this External tracker table tracker table and then I'll find out uh two things based on two things one is the external ID and external ID will be that
uh jira issue ID and external attachment ID is nothing but which will be come from the 4 Loop call this side so if I am able to find out that I'll also check that do not fail on error I'll just check that and then done that so if it Is find out so I'll just query to this external record and if the record is find out I'll do nothing else see if I'll put the flow logic if this lookup status is error it means that it did not find out any record what I'll do I'll
look up this uh Story table I'll move there so these two I'll move there okay I'll look up this and then I'll attach some attachment here okay and then after that after Attachment saved I will do some more action what action I'll do that I'll go and then create record search and create record on which table I'll create the record after successfully save the attachment into the service now I'll create a record under external tracker table which all I will set that first I'll set that external attachment ID plus external uh ID these two will
come from external attachment ID will come from 4 Loop call ID and then external ID is the issue ID that will come from trigger record issue issue ID and then I will set that all internal ID internal ID is nothing but the service now ID so I'll store that service now C ID from this uh second lookup Story Record and then CID and then I need to be store that service now CID so I'll put that attachment ID which is nothing but the service now attachment C I'll get from This uh service number attachment ID
once let's understand the flow one more time I receiving a call from the third party or the J first I'll do a 4 Loop first I'll check that is that present to this my external tracker table or not if it is present I'll do nothing okay it means if it means that if the record is find out successfully I'm not doing anything if it is not able to find out I'll look up the record on the story table I'll find out the story Record I'll save the attachment to the story and then I'll create external
record on the table so let's activate that and if I remove all I'm just removing all these attachment from here at that moment and you can see task number extion is mandatory so five so task number so we need to put that look up story Active so now our flow is activated it now what I'll do I'll for example I'm going to update this uh uh issue here from the J side one two and I just updated that what will be happen it should initiate our uh flow execution let's see so it's initiated that just
now so open that you can see it have a two attachment and you can see the first two attachment are not able to find out so this attachment are not able to find out Under external tracker so what it will do it will create a record it will look up to the story it will create a ATT a record and then finally it is going to be create a record under external tracker so if I go back to this external tracker right now I can see I have two record you can see that these two
are record are there one this internal uh this one is nothing but call our story C ID so this is the story C ID you can see that f77 uh 349 L and then this is the Attachment C ID this is the external uh ID is nothing but our issue ID and then is this is the issue attachment ID now if I go back to this next one you can see both are the same but uh the external attachment ID are different okay and this C ID are different right now now what will be happen
if we refresh that there should be two attachment right now you can see this there is a two attachment right now And you can see these two attachment are showing right now and if I scroll down this two attachment are showing right now okay and now what will be happen if we attach one more attachment let's say I'm attaching one more attachment I have just attached one more attachment what will be happen this time the zaa is going to be sent three uh things okay first attachment second attachment and third attachment and it will do
what it Will go to this external tracker table and it will find out two matching and then what will be happen it will create the third record you can see it's create the third record okay so if I go back to the flow designer execution you will be able to find out that it's just now uh initiated and then if you see that the first record it find out the record it did not do anything second record if I go to the second record it also find out and it did not do anything and then
Third record it did not find out under lookup record and it's created under this attachment is saved and created look up record table so if you go back to the external track you can see there is right now three record or three attachment is showing right now and if you refresh that our story you can see it will have only three attachment so it it did not take uh it's actually take the incremental attachment update so you can see the old attachment are Did not repeat an attaching here so this way I can prevent that
repeated attachment coming from the jira now it's time to add something from the service now and that should casket back to the J so that's also another steps okay so let's do that for that what I'll do I'll go back to this uh actions under this action you can see the J send attachment that we have created earlier by mistake I created under this uh you know um j under J Application but this is our uh action that we have created in our earlier class and it's a custom action we have created right and it
need two things one is it's need that issue key which is nothing but uh the uh jira key and another is the attachment ID so these two things we needed and then we'll be able to send the attachment from service now to the cha so let's do that so what I'll do I'll go back to the flow designer and I'll go to this Flow uh if I show match with active true and published so don't have any attach uh we don't have any uh uh updation of or story updation we don't have any flow I'll
go and create a flow so let's say that jira add trigger record update so whenever the record is going to be updated it this time it is going to be initiated that okay so I'll put this table called rmore Story table okay and and then trigger time it's uh for every Update and click done so what will be happen every story is getting updated this flow is going to be initiated what it is going to do that it is going to be first uh lookups to the attachment table so let's do that so I'll go
to this action and then so whenever I'm going to attach something into the story it is actually a update so whenever I'm going to attach something it will go to the C attachment table and find out all this attachment associated with this story Okay so for that what I'll do I'll go to this uh uh flow and then I'll go to this lookups record lookups record and then which table I'm going to look UPS I'm going to look UPS to that attachment table so I'll go and query to this attachment table so C attachment table
and then what will be the uh condition the table uh name will be rmore story and table CID will be This record C ID okay and it's a look up records it means that it will be able to find out multiple records so I'll do a 4 Loop here I'll go flow logic and then forage I'll forage on this lookup record so I'll click that and then select this lookup record so it will do for each on the lookup records and after that first thing first we'll go and check with the external track table that
is there any Attachments present on corresponding this uh record or not if not then we are going to pass this or we are going to send that right for that what I'll do I'll go and then find out that look up one so this is the lookup record and top one is lookup records so lookup record written one record and lookup records and multiple record so on which table we are going to query that we are going to query to that external table so external tracker table so we'll select That and then first we'll put
that uh call attachment ID what should be the attachment ID attachment ID should be that will come from the 4 record and then C ID we'll get that and then I'll put that internal ID internal ID is nothing but our uh Story Record CID so that we'll find out there so if it is find out in this table I'll just select that don't fail on the error and done so if it is find out on this table we are not going to do anything if it is not Able to find out we are going to
send that right we'll click plus sign if logic if and then we'll select the lookup records status is error so if it is not able to find out onto this table we need to be sent the attachment to this particular table so we'll go to this and then call the send and we'll go to the j under uh sent J J sent attachment this one is a custom action that we have created through this we are going to send the attachment to This uh J boat so let's do that and we need to be pass
the issue key how do we get the issue key we'll get from this here we have a uh key right so we we can pass that okay so we'll use that here so issue key is issue key let's put this one this way so we'll get and find out this trigger record story and then I'll put that key here again I'll do one thing I'll go and then Story Record and then I'll find out that what is the field name call key so You can see you key is the field name so we'll have to
pass that so we'll search with that key and we are going to pass that and then attachment ID is nothing but the C ID so we'll go to this 4 record and then we'll pass this C ID I'm not sure we need to pass that key or ID I mentioned that issue key but I'm thinking that it should be needed that ID so let's find out that uh letterer I'll do and then I'll go again the create record which After sending the attachment we should stor into this uh immediately we should store to this our
external tracker table so we'll go and then find out that external tracker table so we'll select that external tracker and then we'll go to this table called uh attachment ID which is nothing but uh this uh for each record C ID and then we'll select that uh internal ID which is nothing but this story C ID and we'll find out that external ID which is nothing but the key one or ID and external attachment ID which we we'll get from here so we'll go and we're actually not getting but we should get and then store
there okay so we should get somewhere from there and then we should store there okay now if I open this J send attachment one this issue key it's going to be sent Called uh this key and then attachment you can see um this is the attachment sending one which is the multiart and after sending that we should uh store this information some uh we should uh get some information so you can see the Json person it's returning some uh array object and it is returning uh uh few information so you can if I Collapse that
let's see what all information we Are getting so we are getting self ID and file name and then all these things we are getting so we need to update that so we'll go to this outp output and then we'll put that ID and we need that ID so we'll go and then this is the attachment ID we'll get from root root array so as you can see that it's the type of the array and under this array it have that ID file name and key all this stuff so what I'll do I'll go to this
edit again And then I'll put that called array and then array object under this array object you can see that uh we have another uh called ID so we'll go to this and put that called ID uh name will be ID something like that and it's a string go and edit execute uh and then I'll go to this uh Json root and root array I'll just match that and then I'll publish that okay so let's publish this uh action and go back to this uh our flow one and here you can see I'm just Sending
that attachment and then after that I'll just refresh this because we just published this uh action right now I'll just simply refresh this and then uh I'll do a for each Loop so I'll go uh because it's returning in a array so I need to be for each Loop and I'll go to this J attachment and this one because this is a 4 in Loop so I need to put that and after that I'll go to this external tracker here and then I need to be maap with that Called uh external attachment ID right so
I need to be map there so click that and pass this called for our root AR and then I need to be put uh ID and done so it's done now what I'll do here uh here we are passing actually called key instead of key I'll pass that ID so I'll go and uh go here story and then I'll pass this ID okay and activate that so this Flow will be uh also for sending the attachment and previous flow is receiv the attachment from the service now right so this flow is going to be sent
any attachment whichever you're going to attach to the from the service now so if any story updated or if you attach anything on the story table it will go to the you know on the attachment table and it will do a for Lo then once it get the attachment it will go to this external uh tracker table and find out That corresponding record is present or not if it is present you are doing nothing if it is not present we are going to send the attachment we are going to store this ATT attachment under external
tracker table okay now let's go and then click the flow reporting enable um so that we can uh report that so we just confirm that now let's go back to this uh service now and right now I have three attachment here and then under the jira I have three Attachment if I am attaching something what should happen it should save the attachment to the jira and it should not uh CET back so let's screen I will just take the screenshot so I have just attached one attach what should happen and then let's uh put that
something and then save that what should be happened it should initiated our flow and then it should uh go if I go back and if I go to this execution you can see this J story Updated it's called four time and then uh you know it's look up the record and it failed the first record because it's already present second record failed third record failed and fourth record it did did not find out under this look of external tracker it sent a uh attachment and store to this our uh external tracker so if I refresh
that you should be able to see one more record here so let's see so it should be four Attachment fourth number attachment should be visible you can see the fourth attachment are showing and this is the fourth attachment our fourth attachment if I go back to the uh floow designer also under this floow designer you can see it's also initiated our inbound request update and you can see this fourth all these four attachment are present to the external tracker and that's a reason it did not Cascade now if I attach something into this uh from
This Z it should Cascade back to the service now and if I am attaching something into that uh uh service now it should also send that to that um J so it should be by Direction attachment sending and then external tracker is a Tracker which is going to be maintain all these records wherever it is present if you delete anything from that and then you start creating that so this is the table Code table which is going to be maintain uh both attachment ID both Attachment um um both the external and internal attachment ID and
the ID so that's it for today if you have any question let me know in my comment section thank you very much have a great day hello everyone this is the day 13 of the integration H training in this day we'll talk about that OCTA service of integration so before we talk about that let's understand what is the OCTA OCTA is a secure identify Cloud that links all your apps login and device into the Finded digital Fabrics as you know that OCTA is a cloud provider that store the user information and that helps you to
log in multiple apps and uh devices so today we are going to integrate with OCTA to the service now so let's first see that what are the things we are going to implement in our today's session first we'll talk about that how to set up OCTA API in the postman so through the postman we'll set up the OCTA and then we'll talk about that how To get the OCTA us into the service now so let's go back to the postman and understand that how it works so this is our OCTA instance you can see this
is the demo OCTA instance I have created with my um some ID and you can see if I go back to this dictionary and P I have seven uh users available into this OCTA profile now first thing first I have to be use certain mechanism so that I can get this user to my Postman okay so if you go back to the postman I should be Able to F those user information through my Postman Man Okay so let's do that the first thing first is that what I'm going to do that I'm going to click
the plus sign once I click the plus sign you can see the method will be the get method with the help of get method we are going to pull the user information now I'll go to this authorization we should put certain authorization to get this um OCTA user information so first I'll go here and Then select o 2.0 because OCTA support o 2.0 authorization you have options called authorized code authorization code implicit there are other options it will be authorization code again I'll put that called OCTA token here and after that you can see the
call back URL so this call back URL is important we'll click this authorize using browser once I click that you can see by default some URL is populated now we need authorized URL access token URL Client ID client secret so these are the information we needed to be use this details first we'll go to this OCTA here and then we'll go to this application under this application we'll click this application and then we're going to create a new application we'll click the create apps and there we'll select the first IDC open connect so if you
click that you can see that it's saying that token based wor 2.0 authorization for single sign on through this endpoint Recommended if intent to build custom app integration with the OCTA signin wiget so this is for that our purpose and then what type of application it is I'll select the web application and click next Once you click the next you can see the my web app 2 is created so let's say that I'll put that Postman here and then I will ask for the authorization code and I'll select the Refresh token now here you can
see the signin redirect URL this is is the call back URL that I have to be put from where I'll get that I'll get from his this URL I'll copy that and paste to here all right now if I scroll down here you can see that under this assignment control accet you have to be select this allowed everyone in your organization to access that so once you select that this checkbox should be checked save that so this application has been created right Now this is the application has been created we'll get client ID you'll copy
that and put under this client ID option now if you go back to this under this here we have a client secret we'll copy this client secret and put under Postman now we have to put the authorized URL and access token so these two we need to be put that so first I'll go to this my OCTA tools I'll copy this uh URL of the OCTA and paste here and Then after that I'll remove remove this admin part because I don't need this admin then slash here I need to put the authorized URL how do
I get this authorized URL you get this authorized URL this is my authorized URL if you see that the till now this is the host name after that SL2 slv1 SL authorized so this is the authorized URL and after that this is the authorized token URL so these two URL I have to put my post man let me put that now you can see my post Man this is the authorized URL I have put put there and this is the authorized access token URL I have put there make sure that you have removed that/ admin
part so these things are done now I have to put the scope what is the scope scope is that where you can Define the purpose of this application right so our purpose is to get the user detail so what we'll do we'll Define that scope related to the user defined so let's go back here open your Postman uh Application and here you will see that OCTA API scope then find out let's say that find out with the users if you search with that user you will be able to find out multiple uh user Scopes if
you see the bottom oa. users slre so this is the uh read scope if you click on that orever this help icon you will see that allows the apps to read the existing user profile and credential so this is going to be help us to get the user details we'll copy this scope name And as well as will grant that scope so once we grant that that scope will be show under this grant now we'll go back to this our uh uh Postman and put this scope here now we'll click this get new access token
it will open a Chrome browser you can see that the state parameter is invalid it is showing that your request results in an error the authentication request has an invalid State parameter so we need to pass this state Parameter so let's do that I'll cancel that and let's say that I'm putting that one as a state parameter and click get new access token once we click that uh you can see it's successfully authorized because I have already logged into this system now we click this open post man and it will generate a token for me
so the token is going to be generate a moment so the token is generated now I'll click this use token and here what I'll do under this URL I to put some Resource URL where I'm going to access that so what is our host so let's copy this host first so this is our host we'll copy that and paste into the URL and then I have put that/ API slv1 SL user so this is our end point with the help of that we'll be able to fetch the user details so let's click this send button
once we click the send button you can see I have able to receive the user information from my OCTA and here you can see that this is the email address All this information I'm able to get that now under this parameter we can put the limit so with the help of limit you can Define that how much user you need maybe you can put two so we'll get two user information so you can see I'm getting the two user information this way you can get the OCTA or you can set up the OCTA in your
post man now we are going to set up this details in our service now so let's go back to the service now and do that so this is my Service now instance and I'm in the Washington release right now in this service of instance I am going to do some integration the similar integration that we have done here so what we'll do that first we'll go to this credential and uh connection and then here we'll see that uh credential and connection click that credentials and if you see that last time we used that connection and
credential but this time I'm going to Use that credential only the reason is that I just want to show you that how we can do both the way how we can do that okay so you click the new button and then once you click the new button under this credential you will be able to find out that various type of credential here so our case is the O 2.0 we'll select that o 2.0 credential and let's say that I'm going to put that name called uh OCTA Custom okay and simply save that so our credential
is right now safe so now we have to be Define the credential somewhere where we can Define the credential we can Define under get what profile okay for that what we have to do we can go to this o registry so we'll go to this o registry application registry and I'm going to create a new or here so various way you can do that the other option is that connection and credential this is the another option so go and Click this new Option and then select the third option called connect to a third party o
provider we'll click that the first thing is that we need to put the name so let's say that I'm putting that name called OCTA custom now we have to put the client ID client secret and then authorized URL and token URL so how do you get this authorized URL and token URL go to this post man and here we have authorized URL copy this and paste here under this authorized URL And go back here this is our token URL copy that and paste here so authorize URL authorization URL and token URL we have put there
now we have to put the client ID in client secret so let's go back to this uh OCTA and then I'm going to create a new application call similar call here and click next the name could be service now then here we need to put that URL so let's go back here and then put this URL here and then refresh token and then Here we need to be select this allow all user save that so our application is created copy this client ID and paste here client secret we need to be paste here so we'll
copy that and paste here client secret and here we need to be select that authorized code and simply save that okay once you save that you can see this is saved OCTA saved and this is the profile that has been created now this copy this name and then Put here under this credential and save that okay so now profile has been set and if we click there go to this profile you need to Define the scope right so similarly you can go to here and you can Define the scope what are the scope we are
going to do that so if you go back to this application and then under this application scope the way we have done we need to search that user and go the bottom and we need to put this is our scope name called user Hit so we Grant this and copy this one this is our scope name that scope we are going to put here so we put this name here scope and O scope so this has been set and save that once we done that you can go to this and if you refresh that it
should be under what profile it should be visible that scope should be visible so let's see that so some reason it is not visible you can double click here you can click that and then you can search with called OCTA Custom so this is the one we can select that and simply save that so all right our scope is defined here scope is added here go back to this uh again call application registry this is our application registry and under this application registry we have octop profile right and this is the uh profile you can
see this is the OCTA profile go to this credential module again I'll go to this credential again and open this OCTA custom And you can see under this OCTA custom you can see that get o token option is available you can click that and you can see I have received a token so I have received a token so this is the token and that have some validity previously what do we actually did if you recall that for other classes we click this button and then we are able to create this Con connection on credential but
this time we actually go to this credential and create a Credential only okay our credential name is OCTA custom okay now go back to this flow designer module so we'll go back to the flow designer and open this flow designer so as I am in Washington release you can see little bit changes here so uh this uh screen is little bit changed we click here we'll click this action so we are going to create a new action so let's say the name called OCTA custom gate User and click the build action and here the first
thing first we are going to click the plus sign and under this integration we are going to select this called rest and previously recall thate previously in our previous class we are used to select that use connection analysis but this time we'll select that Define connection inl so we are going to Define that and here we need to select the credential so we'll say that OCTA which is right now not showing some reason we'll click this plus sign maybe then we'll select this wor 2.0 quential so let's say that OCTA custom 2 here we'll select
that OCTA custom default profile we need to Define that credential alysis we'll click that and let's say that we are putting that credential alysis call credential call OCTA custom 2 and Submit submit okay and then we can click the get token this token is added update and this things we can use here called OCTA custom okay so this is done what we can do we can have to we put here we need to put the base URL if you select this uh use connection analysis you can see it's a read only but if you select
that this one Define connection URL you need to be put this base URL so what should be the base URL so this is our uh complete details we'll copy that and this is our base URL and then this is the resource path is this one and limit two is the query parameter we'll put that later so this is how our uh things can be done we'll save that and what will happen it will it should return me that all these test user or all this OCTA user through this custom action so Let's see once we
have run that you can see I have received this response body with all this user if I search with my name here you can see this is the first name so I have received all this user here so in this way we can receive this user so that's it for today in our upcoming video we we are going to discuss more about OCTA integration till the time thank you very much have a Great day hello everyone this is the day 14 of the integration Hub training in this day we are going to talk about the
data stream in the integration Hub so what is the data stream that is very important we should know in the integration Hub training to talk about in a simpler format data stream is used for the pagination so what is the pagination that we need to be understand first so let's understand what is the pagination when exposing large data set Through API it needs to be Prov provide a mechanism to paginate the list of resources so let's say that you are uh getting 1 million of data so you are getting 1 million dat of data from
a server what will be happen to get this 1 million of data it might be happen the system got timeout because of this huge data we recommend that to use the pagination method so what is the pagination method so if you see that SQL format like we can use the select star From a product ordered by ID and limit equal to 20 and offset equal to 200 what is this meaning that we are going to f only 20 data not whole data we are going to f only 20 data from the index of 200 after
that we'll again query and maybe we'll query from 220 to 20 data so this way we are going to get the data page by page instead of getting one million data in at a single time we are splitting that in multiple pages and we are getting the data in a page by Ty page so Let's see in the right side another example let's say that you have a server and you have a client so what you are requesting that you are requesting a API called SL product limit equal to 20 and Page equal to 1
what will be happen you will get the product count 1 to 20 next time once you get this data you are going to call again another call call SL product limit equal to 20 but this time page is the two so what will be happen you will get a products from 21 to 40 so This way you are keep changing the page count and then you are keep getting the data from a different set of data instead of use this 1 million data at a single time you are breaking that data into 2 3 four
or divided up as many time as you want and you are getting that minimum data and processing that will help you to not to actually uh time out the system it will get minimum data process and again it will get keep on getting the data so this is we call the Pagination so with the help of data stream we are actually do a pagination and with the help of pagination we are getting the 1 million of data to multiple pages and get the data so let's understand one more time called what is the offset and
what is the limit so this is the another example you can see this is the whole data we are getting so maybe this is the data we are required to Fage from a system but we'll do that at a single time we'll get this data and Then starting time will be zero and and then maximum data we are get going to fetch that 20 so this way we are going to fetch first time this data after fetching this data we are again going to F this data after that we are going to again fish this
data so this way we are going to split this whole system to three part or whole data to three part and we are getting the data so this way we can split that basically so this is the postman tools you can see that in This Postman tools we have put the resource equal to uh our server name then / API slv1 SL user so this if I click the send button this is going to return me all the user you can see this is the multiple user I'm getting so one two 3 4 5 6
like that I'm getting multiple users so if I go back to my OCTA tools and right now I have if I go to the directories and PES I have seven user at that moment okay so this is the seven user I have right now you can see And if I click send button I'm getting the seven user at a single time but what I want I want to be paged so okay so what I'll do I'll put call limit here and I'll put that limit equal to two what will be happen that I'll get the
first two user so let's send that once I send that you can see that I should be able to get two user this is the first user and this user name is called ABC the name is AB and this is the first user and then second user is Nothing but XY Z so this is the second user so I get two user now if if I keep sending that what will be happen I'll keep getting the same data but I only need ABC in the first call in the second call I need other user so
first I'll get that ABC user then I'm getting XY Z user but I also need other user through the page Nation I should go and do page one page two like that okay how we get the second user to get the second user you can go to the headers under this headers You will see that one links call after you can see under this links you'll get a after this is the one you can copy that and pass as a after so you can put that after and then here put that value what will be
happen after the first after you get the first user if you put this after and then put this value it will give you the next user so let's let's see that if I click the send and I get the next user called m in and then I get another user called you can see YW So I get AB XY amn YW now this is the two page now again I have to go to the header and then get this value and so this value is called you can see 100 UF G3 100 ufg 3 T
this is the new value after value we can pass here and click Send what will be happen it will give me another two user so this time I got PQ you and then I got another user called LM so this way you can LM PQ y j MN XY AB I got all the user so this way you can do keep on Sending the request and you can get keep on the data okay so these things we are going to implement in our service instance so let's go to the service now and see these things
so this is our service now instance in this service now instance I'll go to this flow designer module and then under this flow designer module we'll be able to see our options to create a uh new data stream so let's do that so this is our Washington release service now here we will have a Options called new button and option called Data stream once you click this data stream options you will be able to create a new action okay so data stream is nothing but the pation of the action let's say that OCTA paged user
I'll put that OCTA custom page user application is global as it is you can change other properties and other things I'll not going to change anything I'll click that build Data stream now once you click this build data stream it is pretty much similar as you can see that in other um uh normal action but if you if I open this other action let's see that action that I have built last classes called OCTA custom gate user let's see the differences first the difference between that here you can see that I need to add manually
the rest steps but if you go to this OCTA by default there are multiple steps Are added so this Action Pro pre-processing request passsing these are automatically added these sections are automatically added which was not there in our normal actions creation so let's go back back to this action processing you can see that what are the three option we have first is the retrip info enable here you can get the connection information you can enable pre-processing script to be get the processed so these things I'm not going To do anything here under the request you
have a options called uh which type of request it is you can enable the pagination so as we are building this data stream because of this pation we are going to definitely going to enable that then we have a passsing method where we are going to pass the data so first I'll go to this request and then what type of request it is I'll select the rest and click okay and then is it going to be enable the pation yes I'll Click the enable pentation so two things I have done select the rest steps and
then enable the pation the moment we select the rest step by default rest steps created and the moment we click that enable pation the page is turned on here right now we don't have any script we have a template you can click the view template and this is the out of boox template so far you can apply that now under this rest you can Define the connection and alysis let's say that I'm Going to select the same thing here called Define Connection in line I'll select the Define Connection in line and then uh here I'll
select that OCTA custom this is the base URL I'll select That Base URL at this one and put here and then here we can put this resource path I'll copy and then paste as a resource path okay and do we did anything no I have not done anything so this is the what I have said let's save that so after you save that If you try to click the test let's see what is happening so if I click this test button and if you see it's processing and you can see I'm getting a internal server
error so I am getting a internal server error because other than uh setting up the rest steps I have not done anything like I have not done uh the split steps I have not done any scripting I have not defined any output right so I have not done anything basically right so what I'll do I'll open the postman so as you can see that I'm getting ID status as well as I can get that first name last name these are the information right so let's say that I'm going to get ID status and then first
name last name so these are the information I'm going to get that at that moment so let's do that I'll go here I'm going to create a object here so I'll create an object this is the object inside that I'll put the type equal to object Here this should be object not the array object this should be object under this object what are going to get that we going to get the first name so one object is the first name then we have the last name so all the name name are updated now if I
go back here under this uh split step we have Json because we are going to receive here we are going to put the dollar what do you mean by the dollar because if you see that I am Getting a response in Array and if there is any extra uh key inside that then I need to define the kit but here there's no key need to be defined so I'll put that dollar sign and then in the script you can see that there are already Define scripted they have uses so this is the script they have
uses I will just uncomment this line so I'll do uncomment this line so input. Source item this is nothing but this is the source item that I'll receive that then after that we are going to part that and this is the target object. F name which is nothing but our case is that first name last name still uh you know stat as ID so these are going to be the name so first name is that the first name then we have uh last name so these are the object we have first name last name status
and I ID and from where we'll get that this will get from the response that we'll get as a Split parameter we'll get that so first name will become as a you see that the response the first time is coming under profile then first then name so there is no underscore so we'll put that profile dot then this first name so this is coming as a response we'll put that okay then similarly last name will become like that so copy that and paste here under this last name and last name will become here called last
name so copy and paste That okay name we have status status is directly object direct object we'll copy that status and paste here so we'll put that status and then ID we'll copy this is a d direct object we'll copy and paste here called ID okay all right so this mechanism or this is the setting mechanism is done so we are setting that value into this objects here we are setting here um so we can see you can see that these are The value is setting now uh let's save and test that so far we
have not uh done anything for the pagination if you see that we just uh go to this request I just turned off this enable page and here it is a blank right now we'll do that later part let's save that and see that we are actually getting all the data in a proper way or not first so let's test that so we have received uh we have actually able to process the request Previously it was giving that error you can see that it's one page right now and if you see that output we got a
first name called a another first name is called XY Z then MN wpl L we actually get all these status data together so at a at a single request we got that seven request so index six is mean that 7 0 1 2 3 4 5 6 so all the response we have received right now what we need actually we need to be do the enable the pagination so we need to be enable the Pagination so that it can page and instead of getting all these together we can get um part page two request okay
so let's do that to do that what we'll do that we just enable this pations right we'll go and then first we'll click this view template and apply this template now if I open this Postman you can see that if I put this limit equal to two or if I'm putting that limit to under this header I'm getting a value called um after and then this is the cursor point That I'm getting that so that I need to be passed in a next call right so this is the things we need to be crap in
our service now so we need to be grab the headers in our service now so first we need to be grab these headers so let's do one thing I'll just remove all these stops here so actually we don't need this template EV so I'll just remove this code from here here and here I will remove this one also okay so all these things I have removed here if I go back To this rest and here I need to put the limit so let's say that I'm going to put that limit equal to two this is
the fixed we know we put that limit equal to two now under this pagination setup we need to be uh if you recall that I was putting that after and then in the after we are putting this value right so we need to declare a varibles here so we click here and then put that variable name called after and this value should become come from the script so we need To be dynamically get this value after and then that we need to be put here okay so let's do that to get that let's say that
I'll put that call Val headers and then I'll put that called page response then dot then I'll put called response and then in bra under score we have a options called headers so this will give me all these headers and what headers we need we have multiple headers in between we need the link component and if you see that we are getting two Link one is that without after and one is with after so we need the withd after so what we do I'll put call here call link this one okay and let's say that
I'll this will return me an array so I'll go to this for Loop and then I'll put call where I equal to Z and then I less than uh headers dot length then I'll put I ++ and then I will go and then find out that header equal to I'll put that called headers do I so this will give me an List of headers and uh which name is called link and this will go and for Loop that and we'll get header one by one I'll put that GS doino here for the time being and
put uh let's say that header and see what kind of header we are getting so let's test that and we should be able to see these headers in our log statement so if I go back to this logs you can see that we got two headers one is this is the header another headers this is the another Header so in between we need to have the header which have the after so what I'll do here I'll write little bit more code so if header index of and then I'll put call after equal to something is
there then that header we needed so we'll put that and put one more info here so we need a header where have that info okay let's test That where we have after equal to and let's see if we got that headers or not so we actually have to be put that called index of o o will be in capital index of more than minus1 so it means that this head is find out so let's test that and let's see that we got this header right now you can see this is the header we got now
we need to split that so let's split that okay so let's say that I will put that call where after Index equal to empty okay so what we'll put that we'll put that call after index equal to the then header then split then the split object will be called after equal to and then I need this one index so we'll put call one index here and again will Split with what we'll split with call this one limit so we'll put that and this time I will take zero so what I'm am looking for I'm trying
to grab this this value Okay so I'm trying to grab this value first I'll do a split with after equal to if I get that I'll take this this is the left part this is right part I'll take the index of one and then I'll split that With this one and then I'll take the Zero part the left part okay so let's print that after index and test that and go to this logs we got this value so this is the things we need to be pass that so so what I'll do after this for
Loop for Loop so after this for Loop if after index is present then I will put that call variables dot this get next equal to true it means that it Should go to this uh next page and else I will put call get next equal to false and if it is find out what I will do that I will put call this after this one so I'll put that variables dot after what should be the value of this after we should put this after index so this should be our value and here under the rest
message we are assigning these variables value after equal to this one and here under this rest we'll put call plus After equal to this after should come from pagination objects we can directly track that okay so let's test that one more time if we click test it should give me that pagination format data so let's see so as you can see that we are doing pagination and we are calling multiple time it is taking little bit time uh because we are hitting the server multiple time and if you see that uh result total count is
20 page count is 17 which is not expected because our page count should be four because each page have two and total count have total data is seven so 2 divided by 7 maximum four page should be there so this is the wrong thing let's see what happens here so if I go back here and then in the page setup let's put a lck here called gs. info and then let's put that line 13 and then I'll put the plus sign and then I'll put this after index so what Is happening here so let's put
that and click test if I go and check the logs here you can see that I am getting this uh line 13 to multiple time 2 2 two I'm getting this multiple time 2 22 so this index is keep on repeating that two index is repeating keep on repeating what I'll put that I'll put call and here and then I'll put that variables dot after not equal to two so if it is two it means then it's ended because some Reason that OCTA is returning me two after once your page is end also it is
giving me two so I'll put that variables do after not equal to two if it is true it means that page is ended I'll save that and test that let's see what happens so I'll click the test and run test go to this execution open this data stream you can see this time we are able to fetch the four data correctly with seven data counts so four page seven data count Each page have two you can click that and then in the first page we can see that what response we got we can check that
this is the first uh in this first page we got a response called uh ABC and there is a XY Z so this you can check that so this way we can you know this is the page one this is the page one you can go to this page two and then you can go to this page three like that and you can I know it's create a page ination and it each page have two Record and this case you can see mnv and then w y so this is a keep on uh in I
mean keep on doing the page thing and that helps you to uh stay log in not to time out and that's a best practice service now to get huge kind of data you should use the pation so that's it for today if you have any question let me know my comment section thank you very much have a great day