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)
Inserting Metadata with File to MB
JackAtCMG
Thanks to Konidala, I got my metadata collection down to only the editable types. Now my problem is, I load a smaller MBObjectCollection with only the 3 pieces of metadata I want with their values set, and am not able to attach it to the file before I insert to MediaBin.
I can't find a way to make my insert statement accept my metadata collection. My insert statement (which obviously isn't right because there's no reference to the collection anywhere) looks like:
containername.InsertFile((sProcessPath & sFile), sSavedTask.createruntask)
It inserts the file to the proper folder in MB but (as you would expect) does not insert the metadata.
How do I go about tying this metadata to my file before my insertion?
Thanks
Find more posts tagged with
Comments
Konidala
I believe you can't do both, insert & update of custom metadata values, at the same time unless if you are using RTP Task. Instead insert the assets first and then start updating the metadata values using "ReviseMetaData()" method.
Thanks
lyman
Greetings. If you set up a task with the metadata adder primitive and use it as the insertion task for the asset, you can make sure that a given set of metadata iss associated with an asset at ingest. If the metadata to be added is already in the asset (e.g., it already had a caption), the metadata specified in the task takes precedence. Note that in that case the "(Get Original)" retrieval task would reflect the old value (or no value if the added metadata did not exist) whereas the "(None)" retrieval task would refelect the new values.
If you have a fixed set of metadata to add a simple task will do. To add a user-specified piece of metadata would require runtime parameters.
Hope this helps,
Lyman Hurd
MediaBin Server Team
MediaBin Server Team
Interwoven, Inc.