
I need a solution where if a file over 50mb is saved then an email is sent out.
I have seen on the forum some Flows that do this for attachments to a list item but not the actually document uploaded.
If anyone can help that would be much appreciated
Thanks
Hi @RobfreemanFire,
You can check the file properties via a HTTP request. There should be a property called vti_x005f_filesize.
You can check if it is above 52428800 bytes, which should be 50mb (if my math is ok 😁).
Below is an example
1. URI for the Send an HTTP request to SharePoint action
_api/web/lists/getbytitle('@{variables('LibraryName')}')/items(@{triggerOutputs()?['body/ID']})/File/Properties?$select=vti_x005f_filesize
2. Expression in Condition action.
outputs('Send_an_HTTP_request_to_SharePoint')?['body']['vti_x005f_filesize']