Which is the function in Web 8.5 Core Service for getting the all multimedia types because we need to replace the TOM API function : GetListMultimediaTypes
Thanks
Shekhar
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It only takes a minute to sign up.
Sign up to join this communityWhich is the function in Web 8.5 Core Service for getting the all multimedia types because we need to replace the TOM API function : GetListMultimediaTypes
Thanks
Shekhar
Let me try to understand what you need to achieve.
According to TOM.NET API documentation, GetListMultimediaTypes
is used to retrieve all multimedia types defined in system (.jpg, .png, .doc....)
So, I guess you want to retrieve same data using Core Service. You can get this data by using MultimediaTypesFilterData
MultimediaTypesFilterData filter = new MultimediaTypesFilterData
{
BaseColumns = ListBaseColumns.Extended,
};
XElement mmtypes = client.GetSystemWideListXml(filter);
Result of executing this code is shown bellow:
<tcm:ListMultimediaTypes Managed="65544" xmlns:tcm="http://www.tridion.com/ContentManager/5.0">
<tcm:Item ID="tcm:0-1-65544" Title="Gif image" Icon="T65544L0P0" MIMEType="image/gif" FileExtensions="gif"></tcm:Item>
<tcm:Item ID="tcm:0-2-65544" Title="Jpeg image" Icon="T65544L0P0" MIMEType="image/jpeg" FileExtensions="jpg,jpeg,jpe"></tcm:Item>
<tcm:Item ID="tcm:0-3-65544" Title="Png image" Icon="T65544L0P0" MIMEType="image/png" FileExtensions="png"></tcm:Item>
<tcm:Item ID="tcm:0-4-65544" Title="Word document" Icon="T65544L0P0" MIMEType="application/msword" FileExtensions="doc"></tcm:Item>
</tcm:ListMultimediaTypes>
So you see that you can retrieve this data in similar way. Also, if you are new to Tridion Stack Exchange, please update your question as Jonathan suggested so that people can provide more relevant answers according to exact requirements.
Please reference below your for more. The Core Service has methods for retrieving lists of Content Manager items.