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