Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Updating the metadata for a folder/container
ramesh_kumhar
Hi,
We are developing an application using MediaBin API
We need to change the metadata for a folder/container but we are not been able to locate the method in MediaBin API for doing this.
Please let us know how can we achieve this.
Thanks.
Find more posts tagged with
Comments
Migrateduser
Assuming you're using the COM API, you can add, remove, and modify Container metadata using the same methods that are available for Asset metadata. They are:
HRESULT ReviseMetaData([in] IMBObjectCollection *MetaDataValues, [in, optional] VARIANT MetaDataIdentifiers);
HRESULT RemoveMetaData([in] VARIANT MetaDataIdentifiers);
HRESULT CopyMetaData([in] IMBContainer *Container, [in] VARIANT MetaDataIdentifiers);
ReviseMetadata allows you to specify a collection of MetaDataValue objects that are used to add to or revise existing metadata. The second argument is a list of identifiers for metadata to remove.
There is a COM API sample VB6 application for manipulating metadata for assets. It is located under the folder in the samples called AssetMetaData. Search for "ReviseMetaData" and work back from there in the sample app to understand how to form MetaDataValue objects.