Link to home
Start Free TrialLog in
Avatar of Neptune IT
Neptune ITFlag for United States of America

asked on

Powershell updating lookup field in SharePoint 2010

Using Powershell I have uploaded documents to a SharePoint 2010 document library. In the metadata, for each document, there is a lookup field named "Master". It allows the user to select another document in the library based on another documents Title. This works fine manually.

I know what value goes into Master initially, so I want to set this field in my powershell script...just can't get the syntax right.

I can update other metadata fields OK with the simple syntax of:
$docItem["myColumnName"] = $someValue

But the lookup field throws an error when I do the same thing. TIA
ASKER CERTIFIED SOLUTION
Avatar of KoenVosters
KoenVosters
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Neptune IT

ASKER

Thanks, that did it!