ServiceNow - 3 Ways to add Videos to Service Portal in Paris
name jason miller founder of ask finance solutions and we're about to unlock the power of servicenow let's start off by thanking all 3 820 subscribers in over 80 countries globally if you believe in transferring knowledge to those who need it most please click subscribe your user data will not be transferred to anyone outside of aspen now without your express consent hey everyone it's been a little bit since i last posted a video about a month or so and um i recently came across the third method for adding a video to service portal which i had kind of concocted so i wanted to kind of go over the three different ways that at least i had done it in the past so i thought it might help people out because if i experience it you might get the requirement also so i just figured it would be a good thing to post here one thing i wanted to mention also before i get into uh how to do this stuff is that i've been trying to build up a little bit more of an audience i guess on my linkedin page so uh this is it right here aspen now and also been putting out some posts about stuff that's going on in the technology world not necessarily related to servicenow but also um with mergers and acquisitions and like fundraising and people are doing venture capital stuff in silicon valley i think that's stuff that we should be aware of mainly because sometimes it affects us um you know some people have our developers that work for a company like slack who just got acquired by salesforce and their world will probably change dramatically in the next couple of years i'd imagine with that acquisition so anyway if you get a chance um please go ahead and check it out and join if you like so let's just get started today with the the solution or the three solutions i should say so three ways to add videos service portal in paris that's the version i'm working in and i just came up with names with them so the first one is called the youtube method the youtube method is basically um you've probably seen the service portal before which i've displayed in some of my other videos uh which is basically referencing a video that is on youtube so if we take a look here um we'll see here this video and it kind of has like some of the stuff that or some of the features that youtube has embedded within their videos like subscribe and stuff like that but yet it's on uh the portal and service now so the first step for this uh is going to be creating a widget so once we create our widget we're going to want a little code snippet in there so i just went out to widgets and we'll note that it has to be within service portal they're also performance analytics widgets let's make sure we get the right type we're going to click new i called it youtube video and in that widget we are going to add a code snippet is what i'm going to refer to it as and i can't remember where i got this code snippet from but i'm pretty sure it was off community so whoever you are out there thank you but this one was done a while back i can't remember when i created this and i thought it'd be just kind of cool to get a youtube video up there um and again this isn't within the platform so this is why it's a different solution than the other ones and it's a little bit um more public if you will in terms of the nature of because it's coming from youtube right so people get through to my portal or they can go out to youtube and then when we go to our second one so that's the first one the second one is what i would call the homegrown method um and our fir and basically this is going to involve creating your own widget too so that's what the the first two solutions have in common first thing we're going to want to do is update the system properties and the reason why we're going to want to do that is because we're going to house the video in the system so it's actually going to be within the servicenow platform which is probably what a lot of your organizations want to do you want to have the youtube not youtube video you don't want to have your video on youtube you want to have inside the platform for whatever reason maybe you don't want it out there on youtube you know on a public you know whatever the case may be so this glide attachment extensions we'll notice here i added mp4 and i added the mov i also added it here to the extension white list i don't think that this was uh necessary but you can experiment on your own i updated both in haste and i was kind of rushing to get the video out the next thing we're going to want to do is update the embedded objects and this is if needed so our embedded objects are going to be important because as you can see here we have web m movie what else are avi mp4 this is important because it's going to help us upload the video to the videos table so our next step as you might have guessed is upload the videos or upload to the video table so if we type in video under system ui you'll see here are the same options now if i wanted to add another one how would i do that well i'm glad you asked that question so i'm going to click new here i'm going to type in [Music] i don't even know i think i just piggybacked off the other one so let me just go back to the other one i think it was mp4 which i piggybacked off of and i've done this a couple of times so you'll have to bring it back to attachments because that's where i was last and we'll get to that in a second so i think i piggybacked off of this one here yeah and i just changed this to i think it was like m4v or something like that [Music] and then i hit insert and stay away [Music] and there we go now we go back to our embedded object type so i should have probably hit insert so it brought us to the list just to make sure that and it looks like it installed right here great now uh we'll go back to our video and refresh now one thing i noticed was that it might take um a cache update in order to make this happen so we'll see i'll go ahead and refresh this and we'll see how if it comes through or not but this is basically that embedded objects is basically where we would go to update this and it's giving us the output down there and apologies i'm working in a developer instance and as we know with personal developer instances they can take a little bit longer bash so we'll run cache.due and we can move on and come back in a second so the third thing we're going to do is create a widget oh and by the way the code snippets i will put in the description of the video just to note that so i create a widget called homegrown because it's named after the method and down here we'll see the real key here other than the width and the height is that we're referencing the sys attachment table so the sis id from the sis attachment table is what we're looking for in the video file so how did i do that glad you asked that also so i went to attachments i found uh and the file name here just going to be video.mp4 we're going to see the table name right here um so those will give us clues as to you know what the file name is right so at this point what i would do is just go to copy sys id and then i could copy it back into the widget back here the homegrown so now let's see if we ran that cache uh looks like cash ram now we can go to videos and now see we'll see if it's listed there if not then i am totally wrong so let's click uh new yeah there we go m4v has appeared now all right now we'll go to our page here um or actually let's go to the app the front end page and this is what it would run render like um using that code snippet so we'll see here we have the ability to make a full screen if we want um also within their control you know if it plays pauses the volume and then in here we have the ability to download or do a picture and picture so kind of cool code snippet again i think i found that one on community so thank you um to the individual who put that out there and now uh just to take a look at you know on the back end the page uh we'll see here that i don't think there's anything fancy going on within the widget itself uh let's see here homegrown if i click i don't think there are any instance options here okay so there are and then with the third one the third option is it's called video embed and there was an individual who put something out a widget out there on the service now share so thank you to that individual for putting out that video widget and it's kind of cool here's the widget and i pretty much just downloaded it from the share and uploaded it and we'll notice here that nothing is hard-coded in this html body right so there are options where you can do all that stuff so um this is what it looks like uh it's a little bit smaller but that's because i adjusted the option so if we go into the back end here and just to review if you're a first timer work on the service portal you don't really know how to get to the back end or the page designer all you're going to do is if you're on a mac like me i'm going to hold down control and then i'm going to go to page designer and it's going to flip me to this to this page and then one other thing i saw on the front end with this widget was that it had some other options there that when i clicked on it i want to say when i control clicked uh there are some different options but i can't could recreate them but that's okay you could try your uh i can't remember if i did uh the same right-click action or something different but if we go into here and we take a look at our options we're going to see here it's got our sizing options and it's also going to have a playback option there and my apologies that this is so slow but sometimes that's the way it goes with the pdi so the width the height autoplay and then also you'll notice here that it just references the video file table so again you don't have to go to the attachment table and do all that hard coding so this is kind of nice um and i'm working in paris now so it seems to work in there just fine so just to review uh three options or three methods uh to add videos to the service portal we have our youtube homegrown and video embed and then i noted here the differences um between all three methods for uh implementing that so that's it that's it for today if you like what you saw go ahead and click like or go ahead and share this video with others that's our mission to transfer knowledge to those who need it most my name is jason miller
https://www.youtube.com/watch?v=e-Twv_I7l7I