How to change userKeywords
kabexef
Posts: 77
I am trying to change the user keywords of an asset. I have created a metadata file and tried to import it via DzAssetMgr.importMetadataFiles(), but this does not work for all products.
For categories, I have found methods in DzAsset to add or remove them. Is there a similarly simple way, or any way at all, to do this for user keywords?
Post edited by kabexef on
Comments
You might, by the look of it, want to edit youir forst post and move it to the scripting or SDK forum, depending on which you are working in.
userKeywords is an array - it doesn't say it is read-only in the docs, so have you tried just removing the unwanted entries?
As long as you correctly set the Userword in DSX file, App.getAssetMgr().processDBMetaFile... script always works ~~
Actually, to avoid any wrong data in DSX, you just need to firstly add Userword in DS, then re-export DSX file in Content DB Editor (by ticking Auto-Export), that'll do.