[Music] today i am going to talking about servicenow developer top 50 entry questions and answers top service now developer top 50 interview questions and answers so they can ask so many questions in every interview might be they can ask may not ask but these 50 questions they can ask very frequently in every interview so at least you should prepare these all 50 questions and total we have 200 plus questions are there those are very important if you at least prepare these all 15 three questions you can like answer for at least 60 to 70 percent request right interviews so coming to the first question is it's a very common quiet question just tight question so what is the difference between ui policy and data policy what is the difference difference between ui policy and data policy are you telling me guys okay i will explain everything okay so don't worry so ui policy will be executing on the client side data policy will be executing on the server side ui policy will be executing within browser data policy will be running from server side so when customer tried to create or update the record from rest and soap integration or any third party integration list view and the background script and import sets these all the scenarios data policy can be preventing the user and point number three so ui policy user to fully make mandatory are optional read only underwritable visible and invisible but data policy used to fill make monetary are optional and read only writable so we can't hide the okay hide the field through data policy and uh same question right uh within question there is one more sub question so can we convert ui policy to data policy why do we convert ui pos data policy for example we can convert ui policy to data policy suppose one condition you have been applied when state get changes to result then resolution code and resolution nodes are mandatory so when you want to apply the same condition in server side also okay no need to create data policy record manually just you can use the existing ui policy and convert it okay so when you convert ui policy to data policy ui policy record will be goes to inactive date of policy record will be r2 okay let's move to second question what is client scripts and types of client scripts what is client script types of client script so client script is mainly used to change the behavior of the form and instead of using like a ui policies and there are four types of client description service now the first one is the unload on submit unchanged and on cell editor so we can use these all four types of landscapes very frequently in servicenow platform and move to question number three can we use onload client script onload client script in on change yes so we can use onload clan script in on change just using by the parameter is called so is loading ease loading is a parameter is loading is one more parameter in onsen changeline script using by this parameter so we can call once on load client script into on change and question number four what are the parameters in [Music] on change client scripts so there are five parameters in on-site client script okay so new value old value is loading is template and control so these five parameters are available in on-chain transcripts and next question is fifth fifth question is what is dictionary overrides so dictionary override is a property right there we can find different components different templates site so when you want to change the default default behavior from parent to child that movement we can create dictionary overready element so all the like elements we can see over here in our overhead record we can be able to override in the default value we can overriding that mandatory overhead in the like uh read-only and hiding so and other activities also this is the importance of overrating and if you're talking about where we can implement when we can implement overriding for example so when you feel make monetary in the parent table like a task table same behavior can carry forward to sale tables also like incident problem and change if you don't want carry forward a behavior from parent to child so we can implement data policy like sorry dictionary overwrite okay and next one is i said i said dictionary override and then it will be uh take a checkbox or or how it is implemented so you can follow the documentation like a recording or write for example distribute so in every documented entry like a dictionary entry record if you scroll down there we can see that dictionary overrate one like one tab is the right so if you open the tab just click on that creating new dictionary red then we can see some components right checkbox components so which one you want to overwrite it's not checkbox so which one you want to overrate that checkbox we have to enable clear issue uh okay so i will check once okay you got second video okay and let's move to question number six what is business rule and types of business rules business rule is server side script logic and which is going to using to perform code operations create read update and delete so there are four types of business rule in service now so first one is before second one is after third one is async fifth fourth one is display business rule question number seven what is the importance of display business rule so display business tool mainly use it to get the data from server to client server to client which is not available on the form in display business tool we can use one main object is called the underscore scratch pad and following by the syntax of g underscore what is the general scratch pad the underscore scratch pad variable and you can take so variable name and we can assign the value like this and then we can create a new client script that is will be running on when the form is loading so the value will be displayed when the form is loading right so this is the most important variable in display business rule okay and question number eight so could you explain all the types of business rule could explain all the types of business rule okay let me explain the types of businesses there are four types of business rule in service now before and after a sync and a display right so before business will get execute after submit the form before saving the data into the table so then before business will get execute and perform the action so if the condition evaluation true data will be saved if it is false about the action and similarly offer business were also exporting so when the customers submit the form after submitted so data will be save the data into the table immediately then after business will get execute and perform the action that might be create or update so let's coming to another business school is the async i think business rules are similar to the after that will be running like a in the back end in the background so when you want to calculate some metric definitions some sla definitions sending the email notification is all the scenarios okay we can use the microsync business tool so i think business tool can run based on the scheduled time also we can call the business like a scheduled job in business rule only we can use an async business room and question number nine so can we call business rule in client side yes we can call business rule in current side also there is a business tool called display business rule display business rule we can call in client side only one business tool right and next one is 10 i think it is not completed right so tenth one is what about query business rule so query business will use it too when customers queried their table to get the some records from the table so they're going to be excluding the query so while executing that query it will be checking the condition the person having proper rights or not access permissions are not to get the result back so if the person having proper rights to get the data giving the permission otherwise restricting the user so this is about query business tool i can show you practically once again okay and question number 11 so what are all operations we do with business rule so we do different operations creating like inserting inserting updating delete and query so these all four operations we can do with business rule and question number 12 so how many ways waste trigger email notifications how many ways trigger email notification service no guys so we can trigger email notification in three ways the first one is workflow second one is directly we can configure notification third one is event so these three ways we can trigger the email notification right okay so tell me how to how to send email notification via business rule before that can we send email notification i have business rule if yes then tell me how to send email notification by a business tool it's very very important every interview yes we can send email notification via business will also how do you send email notification in business rule so following by the syntax of gs start event q not query event q so in the first parameter we have to pass event event name second parameter we have to pass current object and the third parameter fourth parameter optional like a super m1 and param two one and param to two different parameters so here we can pass recipient address here we can pass recipient address okay so when you pass the recipient address event like a js.event queue so you should now get it to notification record okay so who will receive the tab there is option called param one content recipient address param to content recipient address both checkboxes we need to enable so when you pass the email address in param one parameter please remember this syntax is very very important we can be able to pass more also optional not required more if you want to add more email address you can add directly into the notification okay clear so how do you send how do you send email notifications via event yes we'll be able to send the email notification via event also first of all we have to create even registry there we can provide all the details about the event step number two we have to create email notification so configure all the details into email notification then we can we can create the business tool our ui action and business tool these are all the places we can call the like a sender like a notification through event same syntax we can follow over there okay and question number 15 how do you send email notification [Music] in cc and vcc yes do you remember let do you remember that syntax tell me that add that add dot email email dot add dot tell me add that email address of c okay and we can pass cc address cinemas as now double two two three double one at the rate gmail.com and similarly if you want to send email notification to bcc okay so here we can replace with bcc and add one more line of code this is also very important they can ask very frequently in development interview okay next question so what is glide record what is glide let me take the space what is glide record and use of it so glide record is server side api which is used to perform chord operations instead of executing any sql statement directly into the table right so how many tell me some server-side apis which are available service now wait wait wait tell me some glide glide apis space which are running from [Music] server site tell me some glide apis which are running from server side so in that very first one is glide slide record applied system [Music] now glide session glide date glide date and time glide mutex so one more api glide aggregation so these all are server-side apis which are very frequently using in servicenow platform right and question number eight so what is the difference between glide record and glide aggregation so glide recorder which is used to perform only card operations grid aggregation also we can use sometimes to perform crowd operation and we can be able to perform some aggregate operations also like if you want to get some minimum maximum average and account of the records so that moment we can go for blade aggregation great aggregate is the best practice and what are the methods are available in glad record all the methods we can use in later application also but extra activities we can perform with that aggregation like a sum count minimum maximum average so this all activity is not possible by a grade record and tell me client site apis so the first one is client form glide user glide menu there is no space in the object then finally glide ajax it's very very important okay so question number 20. tell me some methods glide record just tell me some methods which are available in light record blade record i'd query ad query add encoded query okay so query next method choose window set limit order by order by descending okay is valid okay and encode could already anymore set workflow set force update anymore get row count get value set value okay as next underscore next so at least you should remember 10 to 15 important methods don't try to remember allah measures in my case i covered all the methods guys i didn't miss any single method right so please try to remember at least 10 to 15 methods okay inside the method insert all the method okay so update also method okay delete update uh so delete record delete multiple so similarly tell me some methods tell me some methods methods in glide form set mandatory set disable set visible set display okay set mandatory anymore set value get value get this display value is the server side okay set read only anymore flash message eye decoration iron info message add error message any more not remember okay please practice well okay so these all methods are using in glide form so next one is coming to the scenario okay so now i want to print i want print all the tickets i want print all the tickets where i want print all the active tickets okay active tickets where category is network which are created okay right so i want print all active tickets where categories network okay so which are created today these connections we have to apply so now let me write the code so when you want to perform any cloud operations now i want to fetch these all the records right that is called read operation so when you want to perform read operation we have to use grade record only so variable inc equal to new light record we have to pass glide record table name all the letters should be camel case and statement should be answered semicolon inc dot so how do you get actual tickets guys there is a separate method add active query to get all active tickets i am going to adding so one more query to get okay specific tickets where category equal to network right category equal to category equal to network r6 network okay so i don't want to print all our tickets i want print only five tickets where this conditional meet okay so we have to use set limit method inc dot set limit five tickets and then so we have to execute the query right inc dot query and so if you want to handle all the records we have to use while loop inc dot next open and close parenthesis and curly braces now i want to print those record numbers inc dot just start gs start print just i want to print only and start number we have to create get to what all we have created today right yes so one more condition is the pending right yes so i want to print all the tickets so where is the state equal to active equal to true sorry uh tickets and wear the category color network which i created today so i think today i didn't get any tickets with this category okay that's why i can remove this condition not required okay you can can use iron code query method we can pass the encode query method into that okay query but so to get the result back i don't have created any tickets today that's why so let me take the code try to execute and go to favorite it's not available right now let me background states go to background scripts just wait and here and run strips okay so these tickets are meet my condition but only four tickets are there with this this condition that's why printing all these like like four tickets so in case more than five tickets are like a meet your condition it can be so even only five tickets only because i used set limit method so this is a very very important like a interview question like a scenario based question please prepare well this question that i can ask so many times all interviews just the only they want to print out if you write this code okay so without any gap automatically they will get the impression oh cinemas have a good experience so they combined this code within only 50 seconds really great depends on your performance only they can decide right if you write this code within 15 seconds or 30 seconds oh it's really great he written this code right it is not a small thing this thing this code we can use a lot of places in background script right business rule and uh your actions schedule jobs these all the places we can use very frequently this glider record api right it's not small code but might be if you want to add the more connections you can be able to add more condition also that is doesn't matter so just they're going to be understanding so what is the way of writing the code right it's a logic right these these three are the logic these are logic nothing nothing about the conditions like a query we're adding so when you want to get the accurate tickets we can use the i like add active query so if you want to get other tickets also we can add the another query you can use under korea as well right next one is what is glide ajax and importance of it first of all before we take this like a question how many ways okay you how many ways we do get the data the data from server to client so there are three ways to get the data from server to client so the first one is so display display business rule using by g underscore scratch pad variable general score scratch pad variable second one is gate reference method also we can use to get the data from server to client last one is glide ajax so using by these three parameters we can get the data from server to client so out of these three which is the best practice to get the data comes out to client so it is not more impact on the like server glide ajax is the best practice and next question is how many how many types of glide attacks there are two types of glider jacks one is asynchronous cylinders x and second one is synchronous glider jacks asynchronous data jacks will be executing like at the background waiting for the server response so synchronous will be executing immediately and display the result back to the customer so one is that we can use xml xml weight xml weight this is called this method we can use in greater zx in synchronous data jacks we can using xml weight i will show you practical okay don't worry xml wait question number 25 write the code why does write the syntax syntax of glide adjusts okay let's do you remember let us syntax first of all so the standard glide ajax syntax is available over here so depends on your client requirement we can remember it so first parameter variable you can declaration variable so glide adjusts equal to new grid adjacent and the first parameter we have to pass the script include name and grad ajax variable variable dot okay and add param so sis underscore param and first parameter we need to pass the class name third one is the field name and value so fourth line is using the get xml to get the result back using by the callback function so to get the result back so we have to use the get xml like a get response.xml something right now let me take the code from google okay so this is standard glide ajax syntax so while attending the interview please prepare this standard glitter syntax this is fair enough but you have to explain in different way okay so don't use the here we need to say them first parameter is the script include name so let me take this code go to notepad here right so first time at the variable glad ajax is equal to new glide hijacks off so first parameter we have to pass script include name which one you want to call into the client side and this perspective add param and here we need to pass the class name or method name and the third one is field name and a value which value you want to display to the client side field name and value so this is called call back function this is asm grown as glider jugs so 99 percent we are using only get xml and rare cases we can use get xml weight this is called callback function if you want to get the result back so we need to use the same code don't type it just to can copy paste it okay response start response xml dot document element dot get attribute off get the answer so finally we need to get the answer right using by the alert message so this is the standard syntax of glide ajax and question number 26 what is scripting cloud so what is scripting cloud guys script includes the code snippet and the create wants call multiple places where the server side script is running for example so when you want to use the same code multiple places no need to write the code manually return so you can create a script include we can discuss later practical look i can show you okay so that the script include name the scripting group maybe contain a number of functions and classes a function or a class directly we can call into the server side and question number 27 so how many types of scripting clouds are there in service now scripting cloud there are three types of script includes one is the on-demand script include okay it's a classless and second one is a adax processor abstract alex processor it will be used to run in the client side and the third one is third one is defining the new class this topic is not completed no problem will be complete tomorrow okay so question number 28 so can we call script include into client side yes we can call script include into the client side so while creating that new script include there is a checkbox in a form if you enable checkbox like a client callable automatically template will be changed and it is going to be extract ever like extend it to abstract as x processor then system will be allowed to call it the client side i will show you practical okay don't worry 29 so how do you configure notification body in [Music] any notification okay so if you want to like uh configure the notification body into any notification for any email notification first of all we have to create the notification email script what is that so we have to create notification email script then this notification email script we can call into notification html body so what is the syntax of that the following by syntax of dollar dollar open and close curly braces and mail underscore scripts colon so we have to pass the email script name over here okay um and this topic is also pending for us i'm not able to understand i will check it out okay yeah this was not completed uh because i will check it out i had a question there okay i will check it out you are 10 am right 11 a.m right so mail script this is the way we can call email script into the body already seen right and question number 30 so what is sls and types of sls sls are serviceable agreements the agreements are going to define in the agreement between so vendor and uh like a sorry sorry business return and a service provider so there are three types of service level agreements are there so one is sla service level agreement second one is ola operational agreement third one is uc underpinning contracts okay so sla is the agreement is between business unit and service provider ola is operational agreement that agreement is between one internal team to other internal team other operation team two one and one operation team to the operation team that timeline also if you want to calculate we can configure ola uc is underpinning contract the agreement is between third party vendor and service provider right so 31 is what is retractive start and and pass so what is detractor start and pass guys so retract to start and pass is available in start conditioning every sla definition record so when you want to calculate the timeline initial timeline so that should be enabled to create a timeline i want to calculate so for example customer is created priority one ticket okay so in the morning nine o'clock after ten minutes so mind change changing to priority two so priority two time limit is eight hours priority one time limit is one hour okay so when you want to calculate initial timeline so you need to less the time from install right okay so that moment that should be always keeping parts okay when you want to hold your sla okay record an instant table so we can use the retract to start next one is what is acl what is acl and types of acl so acl is access control list which is used to restrict in the user and can defining who can create read update delete the records in servicenow table so there are like four types of acls four types of acls create acl create scl white acl and bilitation these are types of vcl okay next one is how many ways how many levels how many levels we can apply acl rules so we can apply the slots in two levels table level hcl field level hcl okay so i don't have the permission in the table level can i access the field level no so we can't access the field access directly without table level access already we see that one also right and next one is so what about star and none tell me guys what about surrender so star can be defining all the tables mankind defining all the records okay similarly they can ask the questions also none and all the records start and uh table and none table and star table and specific field right you know about all the things and next one which is best practice artist to add the roles which is the best practice to end the roles guys user group right so group is the best fit for example 100 members are in my group so if you want to assign a same role to all hundred members so first of all we should add all our members to the group so we can assign the role to the group level automatically the role can apply to all the members so who are present in respective group so group is always best practice and question number 36 it's very very important so what is the difference between between and ui policy and client scripts okay so ui policy and client scripts both are running in client side only so ui policy maximum we can use one out of the box and use it to fill make mandatory are optional read old and writable visible and invisible only we can use this purpose ui policy and the same activities we can do with client script also but the client scripted executing every time when the form is loaded and submitted change field value and list the view but ui policy gets good only once when the form is loaded so depends on the client requirement so we can go for and choose specific component that might be ui policy or landscapes and one more difference is ui policy is executing only when the form loaded and maximum we are using out of the box features but transcript we are using scripting here comment next question okay so this is a scenario based question so i made short description short description field mandatory via client scripts and same field same field unmandatory via ui policy so what would be the final result guys ui policy will be the final result i've shown practically right okay so when you implement through both like client script and ui policy so final result would be the ui policy so what is the final output it's a mandatory are unmannetary unmandatory okay so i have written [Music] i have written two ui policies and to client scripts so which are exporting first offering it's good in the client script then ai policy will be execute as per the servicenow engine this is also most important question they can ask very frequently in every development entry okay so now let's move to 39 what is service catalog sir before i say can you give me for question number 37 once more explain this so i made short description field mandatory via clan script same field unmonitory by ui policy so when you've done the duplicate what happened so ui policy is the final result so the output would be the field is unmandatory but a client script is first executed then ui policy right yeah exactly exactly so first of all plans to get is good then ui policy will be executed but this scenario the final result would be ui policy only as per the servicenow engine okay so what is service catalog and use of it service catalog is an application within servicenow platform so which is used to fulfill services service opportunities like when you want to providing that better user interacting so customer can be able to follow the requesting that any item and any requesting they're going to be dropping through service catalog and coming to the first question in the service catalog what is record producer so record producer also type of catalog item which is used to create task basic record instead of following the regular process and instead of creating the instant ticket every time it is alternatively create incident ticket sometimes we can call like this also right this is the importance of record producer so what is order guide order guide also type of catalog item which is used to generate bulk items in a single request based on the rule so that is called other gate so what is this cascade variable in order gate aggregate so cascade variable is the property when you enable the kickbox cascade variable automatically carry the value from initial form to install service catalog form to autocad form to catalog item so that is the importance of ordergate so what is user criteria and sometimes that's not needy question suppose i have created one catalog item that should be visible to only id department and a company is so three i in four take this is the current edition based on the conditional meet i want visible okay this particular item so how do you achieve this requirement so we have to create the user criteria so that criteria we can add it to available for right in case same criteria if you are unavailable for what happened so the final result would be not available to user that where the condition meet yes so unavailable not available is always already the available form right and next one is what is variable set so variable set is group of variables create what's called multiple catalog item so that that's what it can be it can be saving a lot of time to developer or administrator while configure any catalog item or record producer next question is 45 what is update set so update set is group of configuration changes and customization which is used to migrate the changes from one instance to another instance okay so could you explain the procedure about update set yes so every servicenow developer while making the changes first of all they have to create a local update record that is marked as complete update set okay then we can implement all the changes given stories when you think about all the changes are completed then you can navigate it to system local like system update set open your local update set and that update set you can mark it as complete and automatically generate the xml file so that xml file you can download keep on desktop and you can navigate it to target instance open the same application called system upgrade set go to retailer data set an exported file we can import into target one and a preview update set and commit it so this is the procedure we have to follow migration changes to target instance okay and the next one is do you facing any problems while migrating the changes yes our face is some problem while migrating changes i faced some collisions also something is already implemented and when i am trying to implement in the ui policy that field is not there in the target table so this kind of errors i'm facing while working with the update set sometimes they're asking these kind of questions also and next question is 46 so what is what is import sets this is a state question okay so import set is like a its application which is used to import bulk data into servicenow table from external data sources using it by the transform app so my source file is the xml or excel json any other file software can be supported these four are support by default so could you explain the procedure about import set you can explain it so when you want to import the bulk data from external sources first of all we have to load the data into staging table that is called temporary table and step number two we have to create transform map so there we can map the source and target tables and create mapping assist and step number four we have to create a classic holistic is the field property so when you enable that field property when you say true it is not allowing to insert any duplicate records and sometimes it is used to updating existing records with new values right finally click on the transform so the entire data will be stored into the target table so this is the procedure about the transform map and like uh input sets yes if you find if the transformer is found any do like a new value that can be being updated but so this is a complete new record system will be create the new record okay so can we create multi plus yes we can create a multi quest also based on the table indexing so it will be checking the this multiple second indexing right holistic 48 so what is matrix and use of it so matrix can be calculated and measuring the effectiveness of your service which is provided by the service provider so you can be able to configure the metric definition as per your client requirement already we've seen it's very simple and pretty much easy right and next question is and can we delete any predefined table no so we can't delete any predefined table system will not allow to delete any predefined table from servicenow instance okay last question is [Music] last question is how we come to know which version of servicenow you are using using in your project so how we come to know how we come to know which first time service now you are using in your project details about the instance so this is all about top 50 servicenow developer entry questions at least if you prepare these all the 153 questions 70 percent you can you can answer for every question 70 percent answer hi sreenivas could you please save this document and can you please share this document in chat okay wait we can save the notepad directly or you want to save the notepad no you want to get the notepad notepad okay yeah uh sir notepad might not open in phone so you can just save it as pdf and whatsapp chat one second so i can say these all the questions in the group also no problem yeah sure thank you top 50 servicenow developer interview questions okay so i will share this documentation for all of groups okay in whatsapp any questions anymore yeah yesterday we were um i mean this we were uh yesterday whatever the topics you are discussing that was leave it out i can drop a message for all the groups okay don't get confused i remember all the groups tomorrow we are searching for some batches i can drop your message separately okay neil mars other batches people also join for this session okay so i can drop your message i remember okay guys i'm going to end up today class at least you can prepare this all the 53 questions to crack the interview okay okay see you tomorrow