<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Adding Relationships - Server Method</title><link>https://www.aras.com/community/f/development/12778/adding-relationships---server-method</link><description>Asking with a more general title, but I&amp;#39;m stuck. I have a need to use a server-side method to generate relationships. Eventually I see this as an admin tool using endpoints whenever I figure out how to pass in a list of names to a method... localhost</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Adding Relationships - Server Method</title><link>https://www.aras.com/community/thread/4932?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 16:27:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a4d9b6da-ab7a-44dc-b1bf-963f843e4595</guid><dc:creator>neil.lindberg</dc:creator><description>&lt;p&gt;Perfect. Now to figure out how to post a body a method endpoint so my testing setup can do this. So awesome! Thanks so much &lt;a href="/community/members/angela"&gt;AngelaIp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding Relationships - Server Method</title><link>https://www.aras.com/community/thread/4929?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 13:00:02 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:648cc11a-619f-49c5-9760-9c227609fe01</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;I assume the line identity = identity.apply() splits your query. So you want to add realtionships when you already finished the editing of the Identity.&lt;/p&gt;
&lt;p&gt;-&amp;gt; Delete line&amp;nbsp;&lt;span&gt; identity = identity.apply();&lt;br /&gt;&lt;/span&gt;-&amp;gt; Replace&amp;nbsp;&lt;span&gt;relationship.apply() with&amp;nbsp;&amp;nbsp;identity = identity.apply();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Use a more clearer &amp;quot;where&amp;quot; query with the name of the target database, cause &amp;#39;name&amp;#39; is available in every table and this could also lead to conflicts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;--&amp;gt; setAttribute(&amp;quot;where&amp;quot;,&amp;quot;[Identity].name = &amp;#39;xyz&amp;#39;&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>