Episode 21 - Update set administration in ServiceNow
hi everyone and let me just make it on my powerpoint hurry up hi and welcome to do with doctors guide to ServiceNow episode number 21 it's been a while and sadly the new job at service now takes a new little time to to get used to all the stuff but hopefully the videos will start coming a little bit more often that it has done the last two months anyway number 21 is here I'm going to talk about opted sets and if you have followed me on LinkedIn or Twitter you might see that I am running to one of the classic gear stuff earlier this week of save me a lot of stuff in the default updated they're not realizing that until two days later anyway let's continue down the powerpoints we can skip those later so my name is Goran language they cater with dr. hopefully you've seen a couple more videos before so I don't need to go through all of these and be working everything from customers now to partner and now working at ServiceNow as a developer internally for ServiceNow got my contact details to the bottom left if you would like to to catch up and follow me or talk about stuff and I love playing around community as much as I care and helping out and do videos blog post like this also I wrote a book trying to put down and knowledge I have called a do we stop this character service now if you haven't bought it or seen it please go to Thomas on your service or search for service now and you will see it here is just a couple of the bullet points I will talk to you and hopefully it will help you in your journey and not do the same mistakes I have done so today go talk quickly about how opposites works we'll talk about how you can actually use batch and do parent child's and benefits of and of course how do we actually move out it sells between different sets kind of a risky business but you're doing it on your own risk of course but sometimes you need to do it like I did and then when doing that I'm going to show you a good way of using merge of the sets to handle this so let's go away from the PowerPoint let's dig into the instance so here we go up to tips for those who doesn't know it you might be new to ServiceNow I tend to keep them up here but the update set and application if you don't have that quickly as click on the cogwheel and use these two to actually do it you can see them disappearing showing when I'm doing two otherwise you can of course use it here as well so up the debts most of the configuration stuff you do are going to be saved in update sense so let's take a look at the default one you would always have a default one that is in progress and this is enough to set that you won't be moving just when you play around and stuff like that and here you can see if I scroll down you see I have done quite a few things just chasing around and they are being saved here since I'm just just playing around all these records or basically saved in a table called sis underlying update online XML if I hit that list I will get to that table I can't of course also us right-click open your window and I would get to that table as well quite the goods now so and as you can see if I go back you have when it's been created what can type the records the specific name who is updated it and or is it an insert or delete or update or if I scroll down of course not let's filter out those ones or is a delete action and let's try it and just show you how to work so let's go create a new update set this is rename this one to something else let's call it empty so 21 first update set so basically I only go with the use of your tuner for fun I'll just go in and create the new criteria let's call it the episode 20 just know and I'll submit that one so now I have created this one if a girl interrupts itself you can see but here is all the information about that record if I click on it you can actually see the whole payload what is actually self now if I go in and for example change the name or perhaps change the name that's a user adopted now when I go to doctor said you can still there's only one record still because what it has done it has updated this file or this record actually has the new so if you keep updating stuff in the same record if you only give one update and update search which later on can end up having difficulties if you are using default like I did sometimes and you have suddenly two rows with the same record and we'll go into that before we do that let's talk about the parent-child sometimes you have Prime for working with the story that you need to do both a global update tip and to have for example a scope tap application yet for that story to to fix and when you're done later and try to apply it you probably can't get some previews because it will say that oh we can't find this record but we have found it in an uncommitted episode so if you're stoked application is actually needing files that you created in your global application you will get some previews if you do the parent show matching and you won't do that because it will keep that for you and I can't really move it for you but I could show you how to set it up so basically I would go in like this let's go interrupted sense I'll let's say I'm going to work in the community come and this is where our mainly works I want to create my parent ear so I basically just do like this oops story like that and I've told that real cool stuff and I'll normally you like this parent then I will just keep this empty I would want to have this just as a place over to connect all different shots so create that one and then I will create a new one oh sure and add the parent I will judge that one so I'll submit that wanna make that one the current one when I'm doing stuff it will end up here and then if I want to have one you know wall and this is the crouton you can have parent-child relations between the different scopes as well so I'll go in here and I'll just don't remember story three four to five doesn't really matter more is this so we can connect it to the correct term and then I'll get death as well now we can start built when we're done you go to the parent one and then when you complete this one it will set all the child's as complete as well and that just showing information you actually need to save it as well and now we can see down here we have the two shots now when we will load this to our test environment it will looked at previous you won't get an errors of the uncommitted changes and stuff like that and you only need to hit commit once you don't need to go through all the different child sets and he'll commit one by one by one which is a really nice thing to do another thing I would like to talk about when it comes to the state of the opposites I would recommend especially when you're multiple developers if you have hit complete on an opposite set and saved it never reopen it if you all I forgot this one and then you reopen it and do some should do some more changes and save that one because what could happen is that you hit complete your fellow developer will go into testing set and retrieve all completed opposites then it will retrieve your up the chat as well then you will reopen it do your changes and hit complete then when you go to test and he retrieved it will not fetch the new one because it would look at this list and say oh I already have this updated it doesn't really care that it's been updated later on and so on so you won't get your new changes and if you're not paying attention you think you fetched a new one you commit it and then suddenly things will not work in tests and you might not understand why so Goutham never go back you're some age and you up the said patch one or something like that and just pulling up this assets in that one instead now to show you the issue I had I was building stuff mainly in flow designer and what I accidentally did is I was going to test my flows and since it was creation created stuff that ended up in updated I didn't want that to be safe of course in my opposite so I switch over to default before testing then I forgot the box with you back because my excuse is when you're using flow designer and it happens before well you might think about something else in you yes it's gone but up here I just paid attention that I was in the right application if this one can can load I guess there you go I was only looking here I didn't realize that I actually the hub did set set default so I was working building stuff for two days and down by accident I was doing a fixed script and then looking down at the versions down here seeing that it ended up in the default dr. sense and then was I realized so let's go to my absurd one looking at my episode one update set you can see that this is my user criteria and this is what I did I had an app descent with full of flow actions if you have done flows you knows that they create a lot of rows in that except as well so I went into the default and let's find my user criteria yeah so now I do some more changes and it's safe so what happens now is in the default update set if I click on that one you have one row and if I look about that specific record and if I look at my other update set the one I want to move you can see I have also row and you can see this is an old one because it has the bad target name so there are two ways an island is normally if I notice this directly and if this would be a new record meaning that didn't have an updates in my correct opposite I would basically he ask you like this and remember playing around with these do it its own your own risks you might destroy a lot of stuff sometimes it's just easier to go back to records do some change it that doesn't really matter and so they're being saved to the correct updater I mean in my case I could just go like this switch over hit my record again but that one this one remove that letter hit save add it again because of course I wanted to be there save again and then I would have delayed this version as well what else you can do you can actually do like this go to the default click on update and change which updated dusties actually belong to and it was well I'm into shake absolutely it was that up to them if I need update now and he back at the default and you can see it's gone from here and it will be in my upset and yeah I'm done right no because basically now we have two rows of doublet and they are even if they have different target names they're pointing at the same society and I never really tried to commit an aptitude to live but it's not good so what I would recommend instead is use the merge and to show let's move this one back to the default so this is the newer version we're moving back so now we have to hold the first version if you realize that you have done this what we recommend do is create a new hot desert I'll go in here create a new one merge from evil orders column that this is totally empty then and it was even the wrong episode number I need to change that episode 10 from default now what I do is I go into the default then I find all the stuff I really need and I moved them into death one episode episode first from the did I just miss that there you are from default and new revenue so let's take a look what what we got and then of course if you have more I would you roll or everything over that I want so now we have two we have from from default which is the records that I want to to catch and here you can see this is the new version and then I have my first after that which has the old one and Merck is good because what you can do is you merge multiple opposites into one aptitude and what it does it looks at each file and just take the newest version of it so in this case we wanted to take this one so let's try let's go to merge and we call this one merge up to that I noticed something strange that is my filter these are the two I was looking at the merge button I thought it ended up up here as well as dinner that's it we filter out which opted says do you want to to merge these are the two I'll get lunch yes boom quite quick since I didn't have so many so let's take a look at the merge stopped itself you can see you have only one we have the new one and what's really good is what it does is that if I look at this one you can see it's empty because it took that one moved over and if I look at the other one that one is still there so the files or the rows that are still left in the to update set or how many are merging the files that are left in those ones are the ones that hasn't been merged into the new one and the only possibility is because there was a new version of that record in some of the other files so it's good to go through and you can see what actually is left to do and then of course I would just put this one as ignore because we don't want to move these ones we only want to move of course to merge top two thirds and this one also there we go so this wall will be the one that we merged just looking at my lists I think that pretty much about it if you know other questions about aptitudes just post them on on the shad loan YouTube channel I'll try to get back to you besides that good weekend and a great Sunday see you around
https://www.youtube.com/watch?v=eqaIJV4e9WI