SD.DataServices > Get All Collections Model > Delete the GetItemsByTypeComponent > Create Integration Library > Select Generator > Query/Script Generator opens the WizardForm > Select provider > SQL Server provider > add the Connection string to access your SMP CMDB database > Enter SQL Query:
SELECT DISTINCT i.Guid, i.ClassGuid, i.Attributes, vc.name as 'name' FROM vItem i JOIN ClassBaseClass CBC on i.ClassGuid=CBC.ClassGuid JOIN Class on i.ClassGuid=Class.Guid JOIN vcollection vc on vc.guid = i.guid LEFT outer Join vItemFolder ifldr on i.Guid=ifldr.ItemGuid LEFT outer join String StringType ON CBC.BaseClassGuid = StringType.BaseGuid and ((StringType.StringRef = 'creatableclass' OR StringType.StringRef = 'itemtype') and StringType.Culture = '') WHERE StringType.String = 'Altiris.NS.StandardItems.Collection.NSDataSrcBasedWithExplicitResourceCollection'
Click Next, then click Next on Step 2. and 3. > Step 4. Fields > Check Returns Data, then Next > Step 5. Give the component a name (GetAllCollections721) tabbing auto populates the othere two fields > Finish then comes the Category and Icon screen, Save, I made no changes > Compile and Close > Find and place GetAllCollections721 on Get All Collections Model > Find and place Multiple Value Mapping component between GetAllCollections721 and Simple Collection Sort > Select Source Array Type for your new component > Create Item For Each and change to Process Variables > Add Array selecting your array > Mapping Target Type and select Altiris.WebServices.Item.ItemDetails > Target Mapping Definition (do the mapping) > Output Variable Name (GetItemsByTypeComponentResult)