Is there a way in SharePoint Online to get Field Properties? For example, I have a lookup column and for this I want its Field Type, Required, Get information from:
Allow Multiple Values: Checked or not, Description. I know we can get it like this:
$context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$context.Credentials = $creds
$web = $context.Web
$list=$web.Lists.GetByTitle($listName);
$fieldColl=$list.Fields;
$context.Load($fieldColl);
$context.ExecuteQuery();
foreach($field in $fieldColl)
{
Write-Host $field.Title
Write-Host $field.Description
}
But I want the other properties as well.