PowerShell to list all list columns in respective order? RRS feed

  • Question

  • Hi there

    Is there any PowerShell to list all list columns in respective order? (On SharePoint Online)
    A link or the script will be appreciated.

    Thank you.

    • Edited by ran009 Thursday, November 21, 2019 9:13 PM
    Thursday, November 21, 2019 9:12 PM


  • Hi ran009,

    We can get all columns via “Get-SPOField” or “Get-PnPField” in SharePoint Online.

    However, when we get all columns from list, it will not return columns based on the list view column ordering settings.

    And we can get columns in ordering from list view via “Get-PnPView” and view.fields parameter, it will return all columns displayed in the list view, but not return all columns defined in the list.

    Best regards,

    Grace Wang

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, November 22, 2019 8:35 AM