Skip to main content

How to get Field values of a list item using CSOM Powershell?

iI am writingusing below code:

foreach($field in $List.Fields) { write-host $field }

foreach($field in $List.Fields)
{
    write-host $field
}

iI am getting the values as output:

Microsoft.SharePoint.Client.Field Microsoft.SharePoint.Client.FieldDataTime Microsoft.SharePoint.Client.FieldLookup

Microsoft.SharePoint.Client.Field
Microsoft.SharePoint.Client.FieldDataTime
Microsoft.SharePoint.Client.FieldLookup

But iI want all field values like ID, Title,Created Created By etc.

How to get Field values of a list item using CSOM Powershell?

i am writing below code:

foreach($field in $List.Fields) { write-host $field }

i am getting the values as output:

Microsoft.SharePoint.Client.Field Microsoft.SharePoint.Client.FieldDataTime Microsoft.SharePoint.Client.FieldLookup

But i want all field values like ID, Title,Created By etc.

How to get Field values of a list item using CSOM Powershell?

I am using below code:

foreach($field in $List.Fields)
{
    write-host $field
}

I am getting the values as output:

Microsoft.SharePoint.Client.Field
Microsoft.SharePoint.Client.FieldDataTime
Microsoft.SharePoint.Client.FieldLookup

But I want all field values like ID, Title, Created By etc.

Source Link
Adarsh Awasthi
  • 451
  • 2
  • 11
  • 29

How to get Field values of a list item using CSOM Powershell?

How to get Field values of a list item using CSOM Powershell?

i am writing below code:

foreach($field in $List.Fields) { write-host $field }

i am getting the values as output:

Microsoft.SharePoint.Client.Field Microsoft.SharePoint.Client.FieldDataTime Microsoft.SharePoint.Client.FieldLookup

But i want all field values like ID, Title,Created By etc.