Neptune IT
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER