web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint Site Storag...
Power Automate
Unanswered

Sharepoint Site Storage Increase Flow

(0) ShareShare
ReportReport
Posted on by 125

Has anyone created a power automate flow that is able to increase a SharePoint site's storage? Users will fill out a form in Power Apps that is linked to a SharePoint site. Power automate will come in and pull that data, find the site that the user requested to increase storage on and do the increase for that user if it is under 300gb. If it is over 300gb, then approval will be needed. All of this will be recorded back to the SharePoint list that is holding this data.

 

Anyone ever create something like this?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @dixonbridgeta,

     

    You could update the StorageMaximumLevel field value via the Microsoft.Online.SharePoint.TenantAdministration namespace. This can be accessed via the _api/Microsoft.Online.SharePoint.TenantAdministration.Tenant

     

    You would need to retrieve the site id. After that you can update that property value via a POST request.

     

    Below is an example.

    Be aware, that value is in MBs not GBs 😁

     

    In this example I am setting the storage limit to 250 GB 

     

    URI

    _api/Microsoft.Online.SharePoint.TenantAdministration.Tenant/Sites('@{outputs('Send_an_HTTP_request_to_SharePoint_-_Get_Site_Id')?['body']['Id']}')

     

    Headers

    {
     "Accept": "application/json;odata=nometadata",
     "Content-Type": "application/json;odata=nometadata",
     "X-HTTP-Method": "MERGE"
    }

     

    Body

    {
    "StorageMaximumLevel": "256000"
    }

     

    updatestoragemaximumlevel.png

     

     

  • dixonbridgeta Profile Picture
    125 on at

    Thank you!

  • dixonbridgeta Profile Picture
    125 on at

    Thank you for this information! I am still not completing understanding however. The method "Get" gets the information from the site and the method "Post" sends the increase I am assuming. I don't understand the headers, and why the storage level is 256000 and not 250000. I tried this example however, and it timed out on the "Post" method.

  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @dixonbridgeta,

     

    That is correct, the GET retrieves the Id of the site you want to update. If you get a timeout it might not succeeded in retrieving that Id. Can you share a screenshot of your failed flow run?

     

    The value is different because one thousand and twenty-four megabytes (1024 MB) is equal to one gigabyte (1 GB):

    https://en.wikipedia.org/wiki/Megabyte

     

    If you want to set it to 250GB that would be 250*1024 = 256000

     

  • dixonbridgeta Profile Picture
    125 on at

    The status says badgateway.

     2023-01-18_08-10-58.png2023-01-18_08-09-08.png

  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @dixonbridgeta,

     

    It looks like you used the whole body from the outputs, make sure you retrieve the Id field value instead. In my example I added the ['Id'] reference at the end of the expression.

     

    In your setup that expression would be:

     

    outputs('Send_an_HTTP_request_to_SharePoint')?['body']['Id']

     

     

  • dixonbridgeta Profile Picture
    125 on at

    I might be misunderstanding... Do I use that expression in the POST method's URI?

    Error message:

    "401 UNAUTHORIZED
    clientRequestId: f0390ef4-540a-43ae-8074-b033b583d9d6
    serviceRequestId: c7818da0-30b4-3000-39d5-f90408b04e54"

  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @dixonbridgeta,

     

    Yes, that is correct. That expression should be used in the Uri field of the Send an HTTP request with the POST method.

     

    Below is a gif (click on it to see it in high resolution) how that would work via the expression editor and dynamic content.

     

    1. Place your cursos between the '' characters

    2. Type ['Id'] via the Expression tab

    3. Place your cursor at the beginning

    4. Click on the Dynamic content field tab and select the Body of the previous GET request action

    5. Place your cursor at the end and click ok.

     

    addexpression_id.gif

  • dixonbridgeta Profile Picture
    125 on at

    Thank you so much for the constant replies! Unfortunately, it is still not working. I followed the instructions and now it just keeps timing out..

  • Expiscornovus Profile Picture
    33,784 Most Valuable Professional on at

    Hi @dixonbridgeta,

     

    Another question. Are you using the SharePoint Admin Center site address in that second request? The Site Address should be different in the second (POST) request.

     

    Let's say your domain is Contoso. In that case the SharePoint Admin Centre site address would be https://contoso-admin.sharepoint.com 

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard