Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Upgrade Category (UpdateObjectCategory)
Matt_Miranda
Does anyone have examples on how to upgrade a category for a specific node through LAPI? For some reason, the way I am doing it, it upgrades the category, but does not keep current values even though those attributes still exist in the new category version. None of the new attributes are required so I do not set any of their values. Here is some of my code:Dim upgradeInfo As LLValue = New LLValue().setAssocNotSetupgradeInfo.add("AddVersion", 1)Dim catID As LLValue = New LLValue().setAssocNotSetcatID.add("ID", 3601760)catID.add("DisplayName", "Contracts-Digitial")Dim catVersion As LLValue = New LLValue().setAssocNotSetlapiDoc.FetchCategoryVersion(catID, catVersion)lapiDoc.UpgradeObjectCategory(objID, catID, catVersion, upgradeInfo)Thanks.Matt
Find more posts tagged with
Comments
Suncor_ECM_Platform_Support
We are experiencing another strange issue. We expanded our category from 3 attributes to 10 attributes. the 3 old attributes were left untouched in new category version. Then we upgrade the category for 20k items. Strange things happened: a large amount of items have category upgraded, but the new attributes were filled with some values. Where did those values come from then? Not all items behave this way. Some items with new category but new attributes are blank, and no pattern has been identified yet.
Hans_Giger
Hi,This issue may be caused by a known defect with the reference LPAD-20701.Please open a ticket with you local support office to investigate this in detail.RegardsHans