Related list does not show record from which it was created ......I have Change Request related list. After I create the new Change Request in related list ,the record is visible in the Changer Request tab but not in (the one from which it was crea

tom68
Kilo Explorer

I have added Related List "Change Requests" on Change Request form in the Default View,

Now I create a new record in related list using new button and record is added successfully....it is working fine.

but when i open the record which was created now and check it, it does not have the change request record present in it by which it was created.

example: I have a change request record  CHG000111  which have a related list "change request" and add a new record to it like CHG000123.... 

but when i open  CHG000123 and check related list "change request" it does not have CHG000111 in it..

Can Anyone please help me.. what should i do..

1 REPLY 1

Muralidharan BS
Mega Sage
Mega Sage

Hi Tom,

That is the OOB behavior, as you have created  CHG000123 from CHG000111, when you navigate to the related list of CHG000111, the other change records show up becz the filter condition there is "Parent = CHG000111". Similarly on CHG000123 it doesn't show up becz this chg has no child records and has only parent records. 

If you wanted to populate the child record and parent records then you have to create a defined related list, and then add it to the form. Here is a doc to create one - https://docs.servicenow.com/bundle/orlando-platform-user-interface/page/administer/form-administrati...

Below simple script will fetch you the record you are expecting, but you have to add parent record field to it. 

current.addQuery('number', parent.number).addOrCondition('parent', parent.sys_id);
current.addEncodedQuery('parentISNOTEMPTY');

find_real_file.png

 

Thanks