I have two dn.multi fields that I want to coalesce into a single list and also ensure it is unique. It would be something like this
$bothFields = $entity["placepositionoccupants"] + $entity["acpositionoccupants"]
$entity["occupants"] = $bothFields | select-object -unique
This doesn't work though. There's a couple things wrong with it. There's no addition operation for whatever object type the entity is and also when I do a select-object -unique it seems to longer be the type that Broker requires. Any hints on how I can achieve this is powershell? If I had the the object type that's required, I could create a new instance of that and then loop through the two lists adding as appropriate but I don't know the object type and couldn't find it any doco.
Customer support service by UserEcho