Washington DC Endpoint Management User Group

 View Only
  • 1.  Workflow - Compare two Collections

    Posted Apr 06, 2012 01:57 PM

    I have two collections where Collection A my have items in Collection B. If they exist I want to remove them from Collection A so Collection A only contains unique items. How do I do this?



  • 2.  RE: Workflow - Compare two Collections

    Posted Apr 06, 2012 02:37 PM

    Add a "Configurable Collection Filter" component where you want the filtering to happen. Set it up like the example below:

    Click on the ellipsis on the Filter Model and set that up like the image below:

    That should work assuming both collections are the same datatype.



  • 3.  RE: Workflow - Compare two Collections

    Posted Apr 06, 2012 03:20 PM

    We were filtering the results to a new collection instead of just filtering them out of the existing and reusing that for the next check. Simple fix.

     

    Thanks for the quick reply



  • 4.  RE: Workflow - Compare two Collections

    Posted Sep 01, 2012 12:26 PM

    Turns out this will time out with large collections. I was wondering if I could just use the Scripting component to do the dedupe in C#.



  • 5.  RE: Workflow - Compare two Collections

    Posted Sep 03, 2012 03:58 AM

    Yes, you can. You only need to properly pass collection on input and return it as a result.

    You can also write a seperate code file, compile it to a independent DLL and generate a method caller component for this DLL.



  • 6.  RE: Workflow - Compare two Collections

    Posted Sep 04, 2012 11:32 AM

    I am kinda shocked something like this doesn't already exist.