Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Creating related list to the same table but wih different filters?

Mika Latvala
Tera Contributor

Hi team.

 

I was asked to create a related list to an existing table, but with different classification - and make the list editable. In practice I'm talking about Program table (pm_program) where a related list to related projects (pm_project) already exists. However, there is a custom attribute "Project type" at the project record and I need to duplicate the existing related list with different filters, one list for project type A and another for project type B.

I was trying to achieve this by copying the existing related list entry (sys_ui_related_list_entry) with Insert&Stay and I was able to achieve 2 lists, but when I try and configure the lists from configure -> list control, both lists are updated.

Then I tried to create a Relationship (sys_relationship), but editing is not possible at all in this case. I had to create a copy of the ootb Edit-button and ignore the ".isOmitEditButton()" condition to get the button visible, but when I click the button, system just keeps on loading the list and does nothing.

MikaLatvala_0-1763464178839.png


Any ideas, please?

0 REPLIES 0