is there any limit on Get-MgSubSite results related to creation date?

Marcos R. Santana Rivero 21 Reputation points
2022-11-11T08:08:45.003+00:00

I created a Powershell to get all SharePoint subsites on our site that have some specific string, but I can't get the list of created sites in the last two months.

thank you in advance.

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,876 Reputation points
    2022-11-21T10:42:41.947+00:00

    Hi @Marcos R. Santana Rivero , I tested locally and ran successfully.

    262622-image.png

    I'm not sure if your problem is that you are working properly, but the data for newly created subsites in the last two months is missing.

    I looked into this and learned that there was a recent update on SharePoint that SharePoint recommends a maximum of 2,000 lists and libraries per site, and 2,000 subsites per site.
    If these limits are exceeded, the performance of the API may be affected. If you have something similar to this, it may cause some problems.

    If your question is not related to this, you can feel free to leave a comment below and we will continue to investigate it. Hope that can help you. Best Wishes.

    262647-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 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.