<?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 Table relationship for two tables in App Engine forum</title>
    <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896793#M4245</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created custom application in studio as per client requirement, i created table A(budget) with form. There is one more table and form linked with same form which is related items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both are having different fields, how to create relationship between both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user should be able to enter details of table B related items in table A form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this to show relationship table below with new button, as there is no same fields in both how to create relationship. Is there any way&lt;/P&gt;</description>
    <pubDate>Sat, 13 Apr 2024 18:35:52 GMT</pubDate>
    <dc:creator>VikramM1</dc:creator>
    <dc:date>2024-04-13T18:35:52Z</dc:date>
    <item>
      <title>Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896793#M4245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created custom application in studio as per client requirement, i created table A(budget) with form. There is one more table and form linked with same form which is related items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both are having different fields, how to create relationship between both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user should be able to enter details of table B related items in table A form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this to show relationship table below with new button, as there is no same fields in both how to create relationship. Is there any way&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 18:35:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896793#M4245</guid>
      <dc:creator>VikramM1</dc:creator>
      <dc:date>2024-04-13T18:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896854#M4248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/652333"&gt;@VikramM1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create a relationship between two tables by creating a reference field on your custom table and point it to another table this is a basic relationship which allow the relation between two tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Follow Example -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created two Tables - Table A and Table B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_0-1713071685142.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347530iD37FB0CC5028886C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_0-1713071685142.png" alt="AstikThombare_0-1713071685142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_1-1713071742790.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347532i6456706DB1B01A3B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_1-1713071742790.png" alt="AstikThombare_1-1713071742790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have create one field on Table A (Reference to B ) that is referencing to table B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_2-1713071832076.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347533iC1B9C664AFCBC824/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_2-1713071832076.png" alt="AstikThombare_2-1713071832076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once this is done we need to create relationship between these two tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Navigate to System Definition -&amp;gt; Relationship&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_3-1713071947701.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347534iF252B7596B6D847F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_3-1713071947701.png" alt="AstikThombare_3-1713071947701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Relationship we need create relationship between these two tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_4-1713072024890.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347535i8FEA0BF7B3DB69EF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_4-1713072024890.png" alt="AstikThombare_4-1713072024890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to know more how to create relationship follow link -https://&lt;A href="http://www.servicenowelite.com/blog/2014/2/6/show-attachments-related-lists" target="_blank"&gt;www.servicenowelite.com/blog/2014/2/6/show-attachments-related-lists&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once this is done we need to add related list to table A&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right click on Table A form -&amp;gt; Configure -&amp;gt; Related List&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_5-1713072141266.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347536iFD5C43BB8E8C2716/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_5-1713072141266.png" alt="AstikThombare_5-1713072141266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Add Related list to table A that we have created&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_6-1713072230827.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347537iF946D44083832AAD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_6-1713072230827.png" alt="AstikThombare_6-1713072230827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_7-1713072267082.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347538i391B39A31AD1A0FC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_7-1713072267082.png" alt="AstikThombare_7-1713072267082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once that is done you are able to see related list at the bottom of Table A and you will able to create new record for table B using that related list&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstikThombare_8-1713072372256.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347539i632C2609BF9B60E9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AstikThombare_8-1713072372256.png" alt="AstikThombare_8-1713072372256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Astik&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 05:26:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896854#M4248</guid>
      <dc:creator>Astik Thombare</dc:creator>
      <dc:date>2024-04-14T05:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896869#M4249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/652333"&gt;@VikramM1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can create Relationship by navigating -&amp;nbsp;&lt;STRONG&gt;System Defination &amp;gt; Relationships.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarthakKashya2_1-1713071639263.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/347528i3C166EF7B0298A16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarthakKashya2_1-1713071639263.png" alt="SarthakKashya2_1-1713071639263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applies to Table - Table B where you want Related List&lt;/P&gt;&lt;P&gt;Query from Table - Table A where you want Reference&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add below code&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;current.addQuery(&lt;/SPAN&gt;&lt;SPAN&gt;'reference_field_name'&lt;/SPAN&gt;&lt;SPAN&gt;, parent.sys_id);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Please mark my answer correct and helpful if this helps you&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks and Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sarthak&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 05:17:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896869#M4249</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-04-14T05:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896889#M4250</link>
      <description>&lt;P&gt;Hi Astik,&amp;nbsp; thanks for your reply. but, i dont have any reference field with table A.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:01:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896889#M4250</guid>
      <dc:creator>VikramM1</dc:creator>
      <dc:date>2024-04-14T06:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896890#M4251</link>
      <description>&lt;P&gt;I dont want to add any reference field, without that i need to create&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:02:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896890#M4251</guid>
      <dc:creator>VikramM1</dc:creator>
      <dc:date>2024-04-14T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896891#M4252</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/652333"&gt;@VikramM1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to create reference field . without that it is not possible . you can create field but dont show on form that could be a workaround .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Astik&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:03:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896891#M4252</guid>
      <dc:creator>Astik Thombare</dc:creator>
      <dc:date>2024-04-14T06:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896894#M4253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/652333"&gt;@VikramM1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You need any Reference field which is pointing to Table B, without that it is not possible to make any relationship with any table.&lt;/P&gt;&lt;P&gt;For example You have related list on Incident table with taking reference from User table, you have the caller field as the reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Please mark my answer correct and helpful if this helps you&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks and Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sarthak&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:49:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2896894#M4253</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2024-04-14T06:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2897101#M4258</link>
      <description>&lt;P&gt;Okay got it&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 16:50:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2897101#M4258</guid>
      <dc:creator>VikramM1</dc:creator>
      <dc:date>2024-04-14T16:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table relationship for two tables</title>
      <link>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2897102#M4259</link>
      <description>&lt;P&gt;Okay got it thanks for the information&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 16:50:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/app-engine-forum/table-relationship-for-two-tables/m-p/2897102#M4259</guid>
      <dc:creator>VikramM1</dc:creator>
      <dc:date>2024-04-14T16:50:39Z</dc:date>
    </item>
  </channel>
</rss>

