<?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>Trying to creat a link through server side method with AML</title><link>https://www.aras.com/community/f/getting-started/9148/trying-to-creat-a-link-through-server-side-method-with-aml</link><description>Hello, 
 AML works in Nash. 
 When an user is created i want to put his identity into another identity. 
 This method is plugged on after add event of identity item type. 
 
 Could you tell me id i missed someting ? Should i put an apply somewhere ? </description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Trying to creat a link through server side method with AML</title><link>https://www.aras.com/community/thread/4455?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 18:39:19 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:51027eb9-48d9-4d7e-aec9-bf9cb222b537</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You already pointed out the problem here. :) You should just need to apply the query that you built using something like the sample code below. I&amp;#39;ve also included some simple validation to make sure the Member is actually created.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;// the aml variable is built above&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Item res = _innovator.applyAML(aml);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;if (res.isError()) {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; // If we&amp;#39;re unable to create the Member, return the error so we can see why&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; return res;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>