<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/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>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Select distinct values with MethodAPISelect_DataSetV2 operation</title><link>http://forums.method.me/cs/forums/thread/28616.aspx</link><pubDate>Fri, 28 Aug 2015 21:07:13 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:28616</guid><dc:creator>Method_Jonathan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/28616.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=28616</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi Salamander,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We are expecting a list of field names here, and do not accept additional SQL &lt;span id="mce_2_start" style="overflow:hidden;"&gt;clauses such as &amp;#39;DISTINCT&amp;#39;. &amp;nbsp;You can try using the the strGrou&lt;span id="mce_10_start" style="overflow:hidden;"&gt;p&lt;/span&gt;ByClause to group your results by the field you are &lt;span id="mce_5_start" style="overflow:hidden;"&gt;wanting to be DISTINCT&lt;/span&gt;&amp;nbsp;in order to&amp;nbsp;return a unique dataset, otherwise you will have to&lt;span id="mce_9_start" style="overflow:hidden;"&gt; perform&lt;/span&gt; processing after retrieving values to derive a unique dataset.&amp;nbsp;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Select distinct values with MethodAPISelect_DataSetV2 operation</title><link>http://forums.method.me/cs/forums/thread/28285.aspx</link><pubDate>Thu, 06 Aug 2015 17:06:02 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:28285</guid><dc:creator>Salamander</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/28285.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=28285</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;I have using the api to select four columns from a Method table, no problem.&lt;/p&gt;
&lt;p&gt;However when I used the DISTINCT keyword in the fields portion of the call, the response was blank instead of success. The response was:&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;windows-1252&amp;quot; ?&amp;gt;&amp;lt;MethodAPI response = &amp;quot;&amp;quot; &amp;gt;&amp;lt;/MethodAPI&amp;gt;&lt;/p&gt;
&lt;p&gt;Since there is no error I&amp;#39;m not sure what my next step is.&lt;/p&gt;
&lt;p&gt;Is using DISTINCT allowed with the Method API? &lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;What is the proper way to have&amp;nbsp;the API &lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt;give you distinct values?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>