logo

NJP

getJournalEntry [ServiceNow]

Import · Jul 22, 2019 · video

hello everyone so in this video we are going to discuss around get general entry great general entry is used to get the value of journal fields for an example work notes or comments you can get you cannot get the value of general field as normal field like coyote or you have saw description description other fields as where to get all the journal entry work notes basically if you want use below so basically current dot work notes dot get general entry so if you want to get all the values of work notes you need to pass minus one in get journal entry if you want to they'll pick the latest comment you need to pass from one so I have a lab session as well for you so you can practice that I will demonstrate that here so we have a problem statement update is ran work notes on all problem associated to that incident so basically let's go to the instance and I will open right incident here and see let's just associate sub problem record here I have associated to problem reports to this incident now let's just open it and move now we need to write a business rule so I will write a new business rule update work notes on problem update and here we can select table and incidentally it would be running on incident form incident table now we expect it advanced we will select after we will select update then we will put a filter here so that business rule doesn't run every time on the faulted whatnots changes now we will write this code here I have a copy I will copy this and I will paste it here function from here okay so what exactly I am doing in this code so I am varying a problem table where I am putting the query parent is current incident after query I am updating the work nodes of that problem record with the current incident work nodes so I am passing here one that means it will just pick the current work notes I have saved the form now let's just put some work notes on this incident this is this is test once I will say this would get corporal to problem number 11 and 12 we have problem number 11 here you can see the work notes great coffee and if we go to the problem Mart well here we have the work notes which are copied from incident record now if I want to copy all the updates let's say I got a requirement where I need to copy all the updates now our work notes basically then I need to pass here as minus 1 right so you save this form and let me put some work notes again there is a test right not to now it will copy this one as well as the previous one so let's go to the problem report if you come here we have opened the form for problem number of 11 and we can see all the work notes get copied so changing party if we go to the incident we can see three work notes here so this is start of this stream and one work notes here then we have another here and third one here so you see here first second and third all three get copied and time if you will verify on the problem not well here you can see so this is how you can make use of kept journal entry to get the value of field type journal basically work notes comments and you can utilize it as per your requirement thank you for watching the video please like share and subscribe thank you

View original source

https://www.youtube.com/watch?v=2GiG7b3bBQc