How to store workitem objects in an array in powershell ?
Probably quite a basic question, but I'm struggling to find the right syntax. In my workflow I retrieve a few workitem objects that I want to reference later (to create child activities in them). How can I create an array, list or hashtable that contains a string as name to identify the item and a workitem object as value ?
So for example I have a SR that is for IT that I would like to reference like $ParentItem = $Items("IT").WorkItem and then create child objects in that $parentItem, where "IT" can be another string to identify an SR in another support group's queue
such as $ParentItem = $Items("HR").WorkItem
I know how to retrieve the workitems, but I can't get my head around the syntax of how to stuff it in the array.