logo

NJP

Advanced Guided Tour with Conditions in ServiceNow | Share the Wealth

Import · Aug 11, 2022 · video

welcome to the gleifeld shoe tour video and my name is bradley frank i am an technical consultant for glyphed the topic will be about the advanced guided tools with conditions this video continues from a beijing daddy to tour video if you have not created a dive too and want to learn how to please check out the guy fact video on youtube called how to use servicenow guided to your designer these slides will be short and straight because i will mainly demonstrate the step after several slides i will briefly go over these slides including why i am adding condition in the guided tour and what pre-requirements are for you to prepare to follow my treasury guide why add condition to the guided tour and why do i want to show you how to do it here's the perfect scenarios when i've worked with my clients my planners want to create a shop study tool for ventures who are new to service now or are unsure of what you do in case seated i created a dye tool provided by servicenow out of about everything this nice but one thing aerated ours and doesn't make sense diatribe appears whenever the user enters the form or the page there is no control over when or where the guy chooses to appear servicenow does not have that out of about condition for that i fear not there is a tradition for that we will need to create two strips to make this work and i will show you how to join the demo servicenow does not have a technical document to show you how to build a directory strip however they do offer the api 32 document that you can find in browser the pre-requisites of this usual videos are that you have already built a data tool and are ready to go to the next level by adding conditions to it i will not be showing how to create a daily tour if you have now created a data tool and do not know how to please search on youtube and look like that how to use servicenow.edu to a designer also you should have good experience with javascript to understand how that works and need to have assets you can strip and strip include it's demo time i will demonstrate how to create a tree strip to add conditioning distributor for my personal instance what you see now on my screen is my servicenow personal instance i mean the customer service management scope if you are in the different applications job that's fun because that doesn't infest it as you see our random injuries taste seated and then boom the guy tree appeared for no reason the daughter choose i shall only appeared in the case form table but has no control without the condition if you are in an interesting form request form material it should be the same except for different tables so i'm gonna go ahead and close the door tool and then remove myself from my horizon to have to deal with that later now i'm going to head over to click three line angle butter items and configure it and then trying to strip then click new and the firm part starts fill out the script name i'm going to probably type like this and then make sure you set the ui top type to all and the type is i don't know i make sure that the table that you want to strip to twitter on the guide to it that right now using the case so if you want to use it incident use an incident table same thing for request table so now i'm going to do the case table it's time to do the coding inside the function unknown the first step is to create an if statement for the condition if reform deal value i want the guy choose appears if the case state is creating informed and the assignment is from software support i'm going to add these two to the if statement 18 so 18 will be it's a value for a rating for [Music] assignment group and then we'll need to get the system ids their salmon group so let me just get my group id copy the next step if the conditional math you want to check if the current user has already used a daily tool by setting the guide to override table i will need to create a guide i just to call the strip include to check the user and the guided tour of oi table so i'm going to add the code in there all these new ideas probably this one will need to get the name of the strip including them go call we'll do that later so i'm going to leave that button for now sva parameters systems and then this is the function that i want to call and the strip include i will just gonna put down step over brittany cheers for user and three [Applause] i didn't want some functional long so as you can see i have a tree parameter by adding name and the current user id and then called function now let's save the script remember the new name of the script includes that you will create it remember the name because that name will have to match the one i'm gonna fill out the blank so keep that in your mind now i'm gonna head over to the strip include and click new so click on strip including click new so i'm gonna fill out the name so i'm going to put down this logo britney tubers or user i'm going to show you checkbox liner cardboard and accessible from our application shop and then we call it attention on so i'm gonna save it before we go on let's copy the api name that you don't need to pay over to the climbing strip i'm gonna page it right there and save it it's very important to remind that i need to mouse gotta head back to stripping club now in the strip box i'm adding the function name that matches the system formula and i type from a clean strip so the name will be this over written true or for user function all right so you can see the overwritten trigger for users they're overwritten through a freezer about about the same awesome now i add a system formula for a user id that would be passing from a kind of strip then create a glide record to call a daddy true overline table so let's get to that following user id and then is a new guide record so the table for otherwise daddy too would be system guy true user overline and create a new variable then find a query [Applause] here driving and add another cord tool i'm not sure you have your own tool that you created you want to make sure you copy the system id of youtube and page entry there so i have my own system id so the true id will be this i'm gonna copy and paste it over to here then i add a while loop to when the quarry finds a vector i want to get a value from a column called a stable auto lens that had a true or false value disable auto lens manager disable that will not show and i choose when the user has already used it later converted disabled bottle french so if the value is true it prevents the guiding truth from a period if it is false then the guided trial will appear so now i have allowed code to return data save the script let's head back to the unknown kind of script create a function that goes through for the check override for the combat from all the strip include function [Music] override respond and trouble ensure respawn respond to now document element bit attribute insured then i will create an if statement to check if the energy is true do not show the guy that should else show the guy so no branding creative statement if ensured true in our statement i'm gonna type i directed to your api and that structure will make the guide to appear up now guys tool api shark tune the main copy of page of our all that is tools and paging here as you can see the number zero is the guide step of the tool which is just the introduction if you put number one the number one will start instead of an introduction now i'm going to add more codes when the user is done with the tooling they will automatically add the user to the disabled although i choose to prevent it from showing up again i'm going to go ahead having the guy idea today with the same script including and [Music] uh so the name that i want to call and this should include would be [Music] insured override true so the current user and add the third one share id my own copy this system idea that you are patient church feature or what you need to insert a new router in the directory for the user id and the tool id let's use a few more lines of code before we go back in to strip including will need to write a code to allow a user to dismiss the guided tools to prevent it from popping up again we will need to add the sent interval function interval function then add any f statement like hold on before i forget so that would be common two thousand someone calling very dumb now about to entry this then add an if statement with the guided true api to check if the user is mr cheering so if statement top now died api to this miss this is also the api for the when the user plays this miss then when you just missed it now guiding api and truer so i'm going to admit that an actually close to churro and cleared interval and this log goes down with the concept so let's save it let's head back to the ship which is one last thing you had in the shipping clue we will need to add code to ensure a new record that the user has already used a data tool and it will need to put the current user in the disabled list to prevent from other angiogenes let's create a function called ensure otherwise you're that match from a kind of strip ensure for eye to room function i'm going to add two important values that we passed from a client strip user id and true id forever his id this this [Music] system denominated use your id that match from a counter strip and create a clear id [Music] then add a new glide writer to call the guided tour of y table server copy this patience then add some line to ensure some data as a new record i will need to add to your id user id and disable autoland to true so [Music] ancient eyes [Music] all the lens they chew record and shake i think we're done with the strip i'm going to save it let's verify if the condition works i'm going to impersonate myself to a different user remember i'm impersonating myself as a regular user using a group of software supports that are adding condition i'm pushing in myself as jody shields i'm going through the case youtube with a safe that is not already information where the guy choose should not appear oh i forgot to disable the other one at one moment and impersonated this is very supposed to disable this so i would not work that's the one thing that i need to remember my shirt that the other branch is turned off so uncheck that and make sure we leave the shield from this all right so let's try it in questionnaire user jody's here do you ever see the page let's see we were appearing that and seeing that there's no quite sure that's what we said right because they say this knee and then assignment group is something else so night i should that's what we want right awesome that's why we're expressing now i will find the cage with the site that you are waiting for and the assignment group is software support let me hear that oh man do the case numbers [Music] the stages are waiting for assembly to drift suffer support so we expect the guy to choose to show up there you go now show pretty right these are from a strip now you can see good unsigned myself what's going on that's nice that's all i have for the children for this video there are some more you can add to these stiff remote controls and mainly focus on adding conditions thank you for watching this video and i do hope these conditions handy for you have a wonderful day [Music] you

View original source

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