logo

NJP

ServiceNow Scripted REST APIs: Part 2 – The Vehicles Application

Import · Mar 16, 2023 · video

foreign in this series we're going to create a scripted rest API in a scoped application this application is called Vehicles so before we start creating the API let's take a quick look at the application itself the basis for our web servers will be this table here called Vehicles it's just a simple table that contains some basic vehicle data such as make model year the vehicle identification number or vin and so forth if we take a look at the application menu we can see we've just got two simple modules here for creating a new record and a link to all records if we look at the form for this table we can see that we've just got nine simple fields if we switch over to Studio we've got our table here for vehicles and then over here we've got three basic roles that we're going to be using mainly the integration role for our demonstrations we've got some access controls as well for our crud operations so the admin can perform all operations the user can perform everything except the leading records and at the moment the integration role has not been assigned yet to any access control but we're going to change that later so you can see here simply example of a read Access Control currently assigned to the user role I've also gone ahead and created three simple groups corresponding to each of the roles that we currently have in our application so one for admins Integrations and another one for users if we look at the vehicle Integrations group it's got one group member at the moment we'll come back to that but you can see it's got the integration role here this group member I've created three corresponding users as well so here we've got the vehicle integration User it's a member of the vehicle integration group with the vehicle integration role it's actually got two roles the integration role and the snc internal role which we will talk about later in this series one thing I will do here is activate the web service access only setting here when you enable this setting this will disable the login using this user account for interactive sessions in other words using the user interface it can only be used for Integrations so now we've got the framework for our web service in the next video we're going to take a look at an application that we're going to use to easily generate demo data because at the moment I don't have any data in my vehicle's application so we're going to use this other application to generate demo records and import them into servicenow foreign

View original source

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