logo

NJP

Create a custom related list in ServiceNow

Import · Feb 29, 2020 · video

hi guys welcome back to my channel in this video we will discuss about how can we create a custom elephant list and how can we add the same to a form so that it is visible to the users who are viewing a particular as a card so let me just open an incident to a card let's go ahead with the first one in the list and so this is one of the incident so as of now we do not have a related list which could display the problem tickets list by the same caller so now I am going to go ahead and create a new related list let me just navigate to the relationships module in the left-hand navigation so the one under system definitions is the one I just go ahead and click on new so once I click on you this is the form which is open for me let me just give a particular name problems by the same collar applies to table is the one on which my rated list will be visible for example in this case we are trying to make it visible on the incident form so this will be incident he's from table is the one from where I'm going to carry the record so I'm trying to display the problem records over here so I will be throwing from the problem table now here we can write the code which will help us to retrieve the relevant data I want to fetch the data from the problem table and I want to display my related list on the incident table so my current record will be my problem for my problem table and my parent object is from my incident table something to do is current dot add ready so on the problem table we do not have a caller field if you guys are already aware if you are not aware so the name of the field over this opened by who is actually opened up problem so I will write the name of that particular field over here and in my parent record the field name is caller ID which is from the incident table I'm done with the coding part this is just a very basic have a little list which I am trying to create over here let me just navigate to my incident form now if probably will have to add that related list over here first I will go to edit it list and I'll search problems by the same color I'll add it over here I click on save so my related list is added over here but as of now the I will know the cards so let us just go ahead and create a record in the problem table which should be by the same column so we will enter the same name in the open by with which we were testing about incidental form volume state open test problem for today demo I am just going to save it and if I just never get back to my incident form I should be able to see a single record over there in the illiterate list which is visible now I could have created a record by clicking on new that is also one of the scenario so since the condition which I have mentioned this that those problems will only be visible which are created by the caller of the incident so once we click on you those things are pre-populated like open by is by default set to the caller's the incident record so this is how we can create custom ill turretless it can be a very basic one and it can be a very complicated one depending on the requirement so you guys can let me know if we have any pain points or any questions regarding the same I can help you with those and who knows I can create my next video on the same topic thanks for watching

View original source

https://www.youtube.com/watch?v=6P3NFTc4Kb4