How to change userKeywords

kabexefkabexef Posts: 75

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

  • Richard HaseltineRichard Haseltine Posts: 100,732

    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?

  • crosswindcrosswind Posts: 6,904
    edited November 7

    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.

    Post edited by crosswind on
Sign In or Register to comment.