Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world 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 *