<?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>Rest API - Pass parameters</title><link>https://www.aras.com/community/f/development/26178/rest-api---pass-parameters</link><description>I wanted to make this as broad a title as possible. I&amp;#39;m shocked I can&amp;#39;t find anything on this. I don&amp;#39;t want to use the ID. Seems everything is bound to ID. 
 I just want to simply know, without use of ID, how a method can consume arguments? How to pass</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rest API - Pass parameters</title><link>https://www.aras.com/community/thread/5131?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 15:36:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:57fc0b34-f15d-4af8-b1a0-648cb77b4674</guid><dc:creator>neil.lindberg</dc:creator><description>&lt;p&gt;I would like to make ItemType autosearch, but cannot - even as admin. I guess I need to go directly to the DB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rest API - Pass parameters</title><link>https://www.aras.com/community/thread/5130?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 15:35:19 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:bfee7c8f-60b9-4d9c-b17d-5fdfbf100c67</guid><dc:creator>neil.lindberg</dc:creator><description>&lt;p&gt;I want to use REST because it is so much faster, even on localhost. I don&amp;#39;t know why and have posted about this before; well, I commented on a post where somebody has the same problem. It takes a minimum of 30 seconds to login. It takes the same to save a function. The post you pointed me to gave me what I needed. It all boils down to using POST with JSON and `this.getProperty(&amp;quot;prop_name&amp;quot;, &amp;quot;default_value&amp;quot;)` to get the property. I&amp;#39;ve only done a proof of concept using strings. It would be so nice if this supported server side JS. But, yeah: this.getProperty(&amp;quot;prop&amp;quot;) was the key to moving forward. I just wanted to know how for future ops as well - especially setup for automation testing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;/* 1st form
var inn = this.getInnovator();
return inn.newResult(&amp;quot;Hello World&amp;quot;);
*/
// 2nd form - this.getProperty can get from a JSON property passed into call.
Innovator inn = this.getInnovator();
string to = this.getProperty(&amp;quot;hello_to&amp;quot;, &amp;quot;World&amp;quot;); // default to &amp;quot;World&amp;quot;
return inn.newResult(&amp;quot;Hello &amp;quot; + to + &amp;quot;!&amp;quot;);
&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rest API - Pass parameters</title><link>https://www.aras.com/community/thread/5116?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 13:54:19 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:838eb413-2111-4aee-9e81-95b5bcde13db</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Setting auto-search to 1 for all ItemTypes will probably not work so easy. You will have to skip all core itemtypes and there are a few where it&amp;acute;s more recommended not to use this setting cause of performance reasons.&lt;/p&gt;
&lt;p&gt;Filter is used for searching a particular table entry. Don&amp;acute;t use &amp;#39;&amp;#39; or &amp;quot;&amp;quot; for searching, e.g.:&lt;br /&gt;.../server/odata/User?$filter=login_name eq admin&lt;/p&gt;
&lt;p&gt;Parameters to a Method can be passend within the body. This sample worked for me:&amp;nbsp;&lt;a href="/b/english/posts/server-side-methods-with-the-aras-restful-api"&gt;https://community.aras.com/b/english/posts/server-side-methods-with-the-aras-restful-api&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But why use REST for this use case at all? You can directly run your Method from the editor. Just ensure that you are the only person to access and execute, or just use it temporary.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>