<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Many to Many on same table? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440060#M11839</link>
    <description>&lt;P&gt;Your suggestion was very good, because it made me change from many to many to relationship one to many, meeting the client's need for the relationship between the same table.&lt;BR /&gt;However, a single problem that it does not give an alternative to the EDIT button to select more than one record to be linked to the one we are dealing with.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 13:11:08 GMT</pubDate>
    <dc:creator>Heleno Martins2</dc:creator>
    <dc:date>2020-04-15T13:11:08Z</dc:date>
    <item>
      <title>Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440044#M11823</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been put to the task of trying to create a Many-to-many relationship on the Change Request table. We sort of have it working but not to our liking. We created another table to associate the changes with each other. but if you go on one change request and show the related list for the Change Request table it will show the related change requests like it should. However, you click on one of the related change requests to view it and it shows the relation on the other table we created not the Change Request table.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;We want it to be consistent on one table not two. The attached link shows the related lists on two different Change Requests. Notice that the table names are different.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Nathan G.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:45:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440044#M11823</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2014-10-24T16:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440045#M11824</link>
      <description>&lt;P&gt;How did you setup the many to many table? &amp;nbsp; Did you use this feature:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Creating_a_Many-to-Many_Relationship" title="http://wiki.servicenow.com/index.php?title=Creating_a_Many-to-Many_Relationship"&gt;Creating a Many-to-Many Relationship - ServiceNow Wiki&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Or did you create your own table?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2014 16:55:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440045#M11824</guid>
      <dc:creator>Michael Ritchie</dc:creator>
      <dc:date>2014-10-24T16:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440046#M11825</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Personally I don't think you are going to be able to change this behavior, although you should be able to work around it. Because you are relating each side of your many-to-many relationship to the Change Request table, you are effectively creating two separate relationships, with two Related Lists required to see the records, depending on which side of the relationship the Change is added to.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What I would do is open the List Control for each related list (once for Change Request and again for Associated Change Requests). Check the "Omit columns if empty" box and save. Then open your many-to-many definition by navigating to "sys_m2m.list", open the record for your list and change both Label fields so that they have the same name.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Now when you open a change, there will only be one Related List displayed each time, and the Label will be the same for each. This keeps the consistency for the user without requiring a radical amount of work. The only hurdle you still may have here is reporting on related changes, as the two different relationships may prove difficult to aggregate.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2014 17:08:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440046#M11825</guid>
      <dc:creator>domaners</dc:creator>
      <dc:date>2014-10-24T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440047#M11826</link>
      <description>&lt;P&gt;Adam,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;That is a good idea let me try that and see if it is acceptable on the other end!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Nathan G.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2014 17:19:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440047#M11826</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2014-10-24T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440048#M11827</link>
      <description>&lt;P&gt;Adam,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Unfortunately this method will not work, because depending what column it is in will depict what table shows up, which means if the record is in both columns down the line they both show up still... I will have to revamp the whole structure and try to find a new way.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Nathan G&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:10:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440048#M11827</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2014-10-29T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440049#M11828</link>
      <description>&lt;P&gt;Nathan, do you recall what you ended up doing here?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Oct 2015 18:17:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440049#M11828</guid>
      <dc:creator>Shane J</dc:creator>
      <dc:date>2015-10-07T18:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440050#M11829</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I ended up creating a list type field on the change table. From there I created a relationship(System Definition&amp;gt;Relationships) From the Change Req table to the Change Req table with the following query:&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_1444264371227454 jive_macro_code" jivemacro_uid="_1444264371227454"&gt;
&lt;P&gt;current.addQuery('sys_idIN' + parent.u_related_changes);&lt;/P&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;Then I overwrote the save and update functions for when they edited the list to query the change table and add the current change to the associated changes added or updated. as well as removed them with this code:&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14442647263036763 jive_macro_code" jivemacro_uid="_14442647263036763"&gt;
&lt;P&gt;var gr = new GlideRecord('change_request');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;gr.addQuery('sys_id','IN' , current.u_related_changes);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;gr.query();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;/*&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;gs.addInfoMessage('Current Sys ID: ' + current.sys_id);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;gs.addInfoMessage('selected Sys ID: ' + current.u_related_changes);*/&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;while(gr.next()){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; if(gr.u_related_changes == ''){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;// gs.addInfoMessage('No Recored so the parent Child is entered1');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; gr.u_related_changes = &amp;nbsp; current.sys_id;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; }else if(gr.u_related_changes.indexOf(current.sys_id) == -1){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;// gs.addInfoMessage('No Recored so the parent Child is entered2');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; gr.u_related_changes = gr.u_related_changes + ',' + current.sys_id;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; gr.update();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;action.setRedirectURL(current);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;current.update();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Oct 2015 00:39:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440050#M11829</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2015-10-08T00:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440051#M11830</link>
      <description>&lt;P&gt;I forgot I added this onChange client script to remove the change from other if it was removed from the list field:&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14442651318492221" jivemacro_uid="_14442651318492221"&gt;
&lt;P&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (isLoading) {&lt;/P&gt;&lt;BR /&gt;
&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14442650189715039" jivemacro_uid="_14442650189715039"&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var old = oldValue;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var val = newValue;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var seperate = old.split(',');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var filterString = '';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(var i = 0; i &amp;lt; seperate.length; i++){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(val.indexOf(seperate[i]) == -1){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(filterString == '')&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filterString = filterString + seperate[i];&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filterString = filterString + ',' + seperate[i];&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //alert('this was removed: ' + seperate[i]);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; //alert(filterString);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(filterString != ''){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var ga = new GlideAjax('RemoveChangeM2M');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ga.addParam('sysparm_name','removeChangeM2M');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ga.addParam('sysparm_filter',filterString);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; ga.addParam('sysparm_number',g_form.getValue('number'));&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ga.getXML(HelloWorldParse);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert('Be sure to always save or update after changing this field');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; function HelloWorldParse(response) {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var answer = response.responseXML.documentElement.getAttribute("answer");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // alert(answer);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;and it references this script include:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14442651156657366" jivemacro_uid="_14442651156657366"&gt;
&lt;P&gt;var RemoveChangeM2M = Class.create();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;RemoveChangeM2M.prototype = Object.extendsObject(AbstractAjaxProcessor, {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; removeChangeM2M: function() {&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var filterString = this.getParameter('sysparm_filter');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var number = this.getParameter('sysparm_number');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var test = '';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var test2 = '';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var hold = '';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try{&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var record = new GlideRecord('change_request');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; record.addQuery('number', number);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; record.query();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(record.next())&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test = record.sys_id;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var gr = new GlideRecord('change_request');&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.addQuery('sys_idIN' + filterString);&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.query();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while(gr.next()){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hold = gr.u_related_changes;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(hold.indexOf(','+test) != -1){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.u_related_changes = hold.replace(','+test, "");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; hold = hold.replace(','+test, "");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test2 = 'with comma';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }else &amp;nbsp; if(hold.indexOf(test) != -1){&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.u_related_changes = hold.replace(test, "");&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test2 = 'no comma';&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.update();&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }catch(e){}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return test2;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; _privateFunction: function() { // this function is not client callable&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;});&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2015 00:46:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440051#M11830</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2015-10-08T00:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440052#M11831</link>
      <description>&lt;P&gt;Hey Nathan, I have a similar requirement - to display a few field values from the related m2m table on one of the 2 m2m tables. Any idea on how to do that ? I have written this below BR on that m2m table and 'Incident' &amp;amp; 'Train Delay' are the 2 tables that are related via many to many.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This script isn't working....:(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14869657676471874 jive_text_macro" data-renderedposition="112_8_1193_368" jivemacro_uid="_14869657676471874"&gt;&lt;P&gt;(function executeRule(current, previous /*null when async*/) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var gr1 = new GlideRecord('u_train_delay');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr1.addQuery('sys_id',current.u_train_delay);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr1.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if(gr1.next()) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var inc = new GlideRecord('incident');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; inc.addQuery('sys_id',current.u_incident);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; inc.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (inc.next()) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; //var state = current.state.getDisplayValue();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; //var group = current.assignment_group.getDisplayValue();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr1.u_incident_state = inc.state.getDisplayValue();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gr1.u_incident_assignment_group = inc.assignment_group.getDisplayValue();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;})(current, previous);&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 06:02:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440052#M11831</guid>
      <dc:creator>ramak</dc:creator>
      <dc:date>2017-02-13T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440053#M11832</link>
      <description>&lt;P&gt;&lt;A title="" _jive_internal="true" class="jive-username-link jiveTT-hover-user" data-analytics="track" data-avatarid="1033" data-externalid="" data-presence="null" data-userid="46030" data-username="ramak" href="https://www.servicenow.com/community?id=community_user_profile&amp;amp;user=42b31e2ddb1c1fc09c9ffb651f9619bf"&gt;Suhas Ram&lt;/A&gt;,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Sorry I haven't logged into the Community in a couple months. Your code looks like you need to add gr1.update(); on line 19. Let me know if you need any extra help.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~Nate&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:35:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440053#M11832</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2017-04-11T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440054#M11833</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;did you manage to add &amp;nbsp; the Edit Button in a customized relationship?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2017 06:52:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440054#M11833</guid>
      <dc:creator>sergej11221</dc:creator>
      <dc:date>2017-06-15T06:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440055#M11834</link>
      <description>&lt;P&gt;This was a while back for an old client. I dont think we had the "edit" button on the related list, because the related list was populated by the list collector variable.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:07:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440055#M11834</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2017-06-15T13:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440056#M11835</link>
      <description>&lt;P&gt;I honestly would not use this method anymore they are better ways lol.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:08:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440056#M11835</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2017-06-15T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440057#M11836</link>
      <description>&lt;P&gt;I'm trying to do something similar with Knowledge articles, what do you think is a better way?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:50:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440057#M11836</guid>
      <dc:creator>smr_itsm</dc:creator>
      <dc:date>2017-06-22T13:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440058#M11837</link>
      <description>&lt;P&gt;so I did it without creating a new table, but off the top of my head the easiest way I think would be to create a new table. create 2 reference fields both on in your instance the KA table. I would also create a true/false flag (default false). Then make an on create BR triggered when flag is false and create a second record and flop the ref field values new record has flag true. (this prevents an endless loop of creating records). then create a delete BR that finds the flip flops and deletes it too so you dont have orphaned relationships. That would be my approach. that way you have the new/edit capabilities on the table. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:14:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440058#M11837</guid>
      <dc:creator>Nate23</dc:creator>
      <dc:date>2017-06-22T14:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440059#M11838</link>
      <description>&lt;P&gt;I am facing a similar problem as described. For my client we are creating a scoped app with custom tables. The client wants to be able to relate records on the custom table to other records within that table. Kinda like relating multiple incidents to each other. Do you have any code the references your new approach?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2017 20:50:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440059#M11838</guid>
      <dc:creator>simmons_andre</dc:creator>
      <dc:date>2017-09-08T20:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Many to Many on same table?</title>
      <link>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440060#M11839</link>
      <description>&lt;P&gt;Your suggestion was very good, because it made me change from many to many to relationship one to many, meeting the client's need for the relationship between the same table.&lt;BR /&gt;However, a single problem that it does not give an alternative to the EDIT button to select more than one record to be linked to the one we are dealing with.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:11:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/many-to-many-on-same-table/m-p/440060#M11839</guid>
      <dc:creator>Heleno Martins2</dc:creator>
      <dc:date>2020-04-15T13:11:08Z</dc:date>
    </item>
  </channel>
</rss>

