You need to sign in to do that
Don't have an account?
mansi gupta 30
How to find current file storage used in apex
I have a requirement in wihich i need to check the used file storage of org.
How can i achieve this in apex, as i want to check if space are available in my org before inserting the attachment.
How can i achieve this in apex, as i want to check if space are available in my org before inserting the attachment.
Greetings to you!
You can get the storage information (Maximum and Remaining) using REST API Limit object.
Example response:
Please refer to the below link which might help you further with the above requirement.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_limits.htm
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas