How to get list item size (with attachments)?

Yuvraj Patil 241 Reputation points
2022-09-02T09:38:07.23+00:00

Hello,

I have one requirement where I would like to show the list item size including all attachments. For document File 'File_x0020_Size' field is there which will give the size. But for generic list item how to get the size of it?

Please help, Thanks in advance !!.

@RaytheonXie_MSFT

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
1,607 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,417 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,795 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,375 questions
{count} votes

Accepted answer
  1. Jing Sun_MSFT 921 Reputation points
    2022-09-05T07:38:39.183+00:00

    Hi @Yuvraj Patil ,
    Per my test, currently, there is no way to get size of each item in a list. You can use Storage Metrics to get the total size of the list.
    Site setting -> Storage Metrics (under Site Collection Administration) -> lists
    The Storage Metrics consist of some forms and attachment folder. In Storage Metrics you could see the size of each attachment in a list.
    237727-image.png
    237669-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful