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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Find out in which table certain tenant media records are used

(1) ShareShare
ReportReport
Posted on by 6
Hallo,
 
We currently have a tenant media table that has a total size of ~78 Gigabyte. We would like to now were this data is coming from.
We created a solution for this in which we went through every field were the field type was either media or mediaset.
 
however we only get ~46 gigabytes back in our calculation.
At this point we have tried many options. Like finding the orphans of these 2 tables among other things.
 
What I would like to know whether or not it is possible to use the Media Id of a record in the table tenant media to find the record it is used in. (E.g. an image on a item) as far as I know this is not possible.
Any other suggestions or tips are welcome.
 
To clarify: Getting the orphans does not work for either mediaset or media as the data we get from media is nothing at all and from mediaset we get 2 png files. And 2 png files cannot be 30 GB. so these answers dont help
I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    12,228 Super User 2026 Season 1 on at
    You can use the Media.FindOrphans and MediaSet.FindOrphans methods to identify and clean up orphaned media
     
  • YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, hope the following helps.
    Business Central 2023 wave 1 (BC22): Discovers all orphaned media/media sets (New Media.FindOrphans/MediaSet.FindOrphans method)
     
    Thanks.
    ZHU
  • KW-30100809-0 Profile Picture
    6 on at
    None of this suggestions are the solution. I have already tried find orphans but I only get back 2 png files> those cannot be 30GB in size

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans