<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: SOAP API - Get root test case (folder) (Thread)</title><description>&#xD;
&#xD;
&#xD;
 Hi,  I would like to get a list of the 'root folders' trough the SOAP API. I can either use:   TestCase_RetrieveByFolder(int testCaseFolderId). But how do I get the root folder? From there, I can browse the rest of the tree.  TestCase_Retrieve(ArrayOfRemoteFilter? remoteFilters, int startingRow, int numberOfRows) with using a filter on the IndentLevel parameter. However, this seems not to be working as expected.   In the last code, I used (for testing):   var Filter = new RemoteFilter(); Filter.PropertyName = "IndentLevel"; Filter.StringValue = "AAA";    var RootTestCases = Client.TestCase_Retrieve(remoteFilters: new RemoteFilter[] { Filter }, startingRow: 1, numberOfRows: 50);   However, it still gives me all results ignoring the filter. What am I doing wrong? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/1081.aspx</link><item><guid isPermaLink="false">threadId=1081</guid><author>Stefan van Loenhout (svloenhout@huisman-nl.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">api</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> soap</category><title>SOAP API - Get root test case (folder)</title><description>&#xD;
&#xD;
&#xD;
 Hi,  I would like to get a list of the 'root folders' trough the SOAP API. I can either use:   TestCase_RetrieveByFolder(int testCaseFolderId). But how do I get the root folder? From there, I can browse the rest of the tree.  TestCase_Retrieve(ArrayOfRemoteFilter? remoteFilters, int startingRow, int numberOfRows) with using a filter on the IndentLevel parameter. However, this seems not to be working as expected.   In the last code, I used (for testing):   var Filter = new RemoteFilter(); Filter.PropertyName = "IndentLevel"; Filter.StringValue = "AAA";    var RootTestCases = Client.TestCase_Retrieve(remoteFilters: new RemoteFilter[] { Filter }, startingRow: 1, numberOfRows: 50);   However, it still gives me all results ignoring the filter. What am I doing wrong? </description><pubDate>Thu, 27 Nov 2014 05:40:05 -0500</pubDate><a10:updated>2014-12-01T23:27:13-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1081.aspx</link></item><item><guid isPermaLink="false">messageId=1933</guid><author>Inflectra Sarah (donotreply6@kronodesk.net)</author><title>&#xD;
Hi Stefan    I have just checked and there is not a way to get the root test cases at present I'm </title><description>&#xD;
Hi Stefan    I have just checked and there is not a way to get the root test cases at present I'm afraid with a single call.  You'd need to basically call the main TestCase_Retrieve(...) function to get a list of test cases in the project and then loop through and only use the ones that have an IndentLevel of three characters in length (e.g. AAA, AAB, AAC, etc.)     Regards     Sarah </description><pubDate>Mon, 01 Dec 2014 15:59:15 -0500</pubDate><a10:updated>2014-12-01T15:59:15-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1081.aspx#reply1933</link></item><item><guid isPermaLink="false">messageId=1936</guid><author>Stefan van Loenhout (svloenhout@huisman-nl.com)</author><title>Hi Sarah,    thank you for the answer. The reason why I was looking for this is because we have a qu</title><description>Hi Sarah,    thank you for the answer. The reason why I was looking for this is because we have a quite slow connection between our offices. So, I thought, if I can find the root elements first, I can browse the whole tree from there ...     But for now I can just download all the test cases first before we can continue, it is also acceptable for now. </description><pubDate>Mon, 01 Dec 2014 23:27:12 -0500</pubDate><a10:updated>2014-12-01T23:27:12-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1081.aspx#reply1936</link></item><item><guid isPermaLink="false">messageId=1937</guid><author>Stefan van Loenhout (svloenhout@huisman-nl.com)</author><title>Hi Sarah,    thank you for the answer. The reason why I was looking for this is because we have a qu</title><description>Hi Sarah,    thank you for the answer. The reason why I was looking for this is because we have a quite slow connection between our offices. So, I thought, if I can find the root elements first, I can browse the whole tree from there ...     But for now I can just download all the test cases first before we can continue, it is also acceptable for now. </description><pubDate>Mon, 01 Dec 2014 23:27:13 -0500</pubDate><a10:updated>2014-12-01T23:27:13-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/1081.aspx#reply1937</link></item></channel></rss>