Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

3 thoughts on “SharePoint Online: Update Managed Metadata Field Value using PowerShell

  • Am I the only one getting an error when casting TaxonomyField in the line #73?

    Exception calling “MakeGenericMethod” with “1” argument(s): “GenericArguments[0], ‘Microsoft.SharePoint.Client.Taxonomy.TaxonomyField’, on ‘T CastTo[T](Microso
    ft.SharePoint.Client.ClientObject)’ violates the constraint of type ‘T’.”
    At line:1 char:1
    + [Microsoft.SharePoint.Client.Taxonomy.TaxonomyField] $taxonomyFld1 = …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

  • Hi There,

    This is great script – I would like to thank you for putting effort to help your fellow consultants 🙂

    I was wondering if there you could enhance this script to update all items within a document library and get Column values from a CSV file map with Item ID?

    Thanks once again.


Leave a Reply

Your email address will not be published. Required fields are marked *