0 votes
Hello,

I want to read all entries (Defects and Requirment) from a folder in a list.
Which of the folder commands can be used for this?

regards
asked Jun 5, 2018 in TestTrack by Shapour (140 points)

1 Answer

+1 vote
You could use getEntityListForFolderByRecordID which would return a list of items in a folder. This list will contain record IDs of the items (ex: defect or requirement), not the full defect or requirement objects itself. You would then need to make a SOAP call to retrieve the defect/requirement) by that record ID.

For more information about the getEntityListForFolderByRecordID function, you can refer to the SDK documentation at http://help.seapine.com/help.php?product=helixalm&type=sdk
answered Jun 6, 2018 by RichC (5,790 points)
edited Jun 6, 2018 by RichC
thanks RichC, I got it and also I made the SOAP call to get the request and defecs.

CFolderItem[] fItems = getEntityListForFolderByRecordID()

            foreach (var item in fItems)
            {
                if (item.entitytablename.CompareTo("Defect") == 0)
                { //do something

                   CDefect def = getdefect(item.entityrecordid);

                }

....
245 questions
258 answers
105 comments
1,650 users