“Business Central customers can use up to 80 GB of database storage capacity across all of their environments (production and sandbox), meaning that the sum of database capacity usage of all of their environments must not exceed 80 GB” – Microsoft Docs
One way to keep your SaaS customers database size in check is by “Migrating BLOB data types to Media or MediaSet – Data in Media or Media set data types aren’t counted in the database limit. As an extension developer, consider migrating data from blobs to the Media or MediaSet datatypes for your own extensions” – per Microsoft Documentation.
Said and done.
Let’s create a new table that contains a MediaSet field.
In a List page for the above table, displayed the MediaSet field as a factbox with 3 actions:
The code in each action was based on the Customer Image factbox, but adapted to use Microsoft System’s app table “Tenant Media”.
Get the code from here.