locked
Flow a null to MV multivalued attribute or import a null value directly into portal RRS feed

  • Question

  • I need to null about 2500 users Multi-Valued attributes in the portal and the Metaverse.

    I cant seem to work out the powershell code. I've tried to find something in scriptbox. But not seeing anything. Anyone got anything i can use?

    Friday, May 10, 2013 4:05 PM

All replies

  • Have you looked at the FIM Function Library? http://social.technet.microsoft.com/wiki/contents/articles/3985.how-to-use-powershell-as-an-fim-function-library.aspx

    I think it contains functions to remove and add multivalued attributes:

    function AddMultiValue
    {
        PARAM($ImportObject, $AttributeName, $NewAttributeValue, $FullyResolved=1)
        END
        {
            $ImportChange = CreateImportChange -AttributeName $AttributeName -AttributeValue $NewAttributeValue -Operation 0
            $ImportChange.FullyResolved = $FullyResolved
            AddImportChangeToImportObject $ImportChange $ImportObject
        }
    }

    function RemoveMultiValue
    {
        PARAM($ImportObject, $AttributeName, $NewAttributeValue, $FullyResolved=1)
        END
        {
            $ImportChange = CreateImportChange -AttributeName $AttributeName -AttributeValue $NewAttributeValue -Operation 2
            $ImportChange.FullyResolved = $FullyResolved
            AddImportChangeToImportObject $ImportChange $ImportObject
        }
    }

    HTH,

    Sami

    Tuesday, May 14, 2013 8:48 PM