foreach ($item in $spListItems)
            {
                  if ($item["lookupcol"] -ne $null)
                  {
                      $lookup 
= [Microsoft.SharePoint.SPFieldLookupValue]$item["lookupcol"];   
                      $lookupvalue = $lookup.LookupValue;
                        Write-Host "lookupcol
value" $lookupvalue
                  }
            }

 
 
No comments:
Post a Comment