×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Category Upgrade using Content Webservices

Category Upgrade using Content Webservices

Category Upgrade using Content Webservices

(OP)
Hi,

We are trying to upgrade the categories in XECM for the old categories and it is not upgrading to the old categories using webservices.Using content server browser can able to upgrade for the old categories also.

When we try to upgrade new categories using webservices and it is upgrading successfully.

Version :16.2.3

I have nt seen any Rest API function call for the category upgrade.

Here is my C# code.Any suggestions or ideas for the category upgrade ?

public void UpgradeCategory(long nodeId, string categoryName)
{
try
{
var node = DocManClient.GetNode(ref DocManAuthen, nodeId);
if (node == null)
return;

if (node.Metadata.AttributeGroups == null)
return;

var categoryInher = DocManClient.GetCategoryInheritance(ref DocManAuthen, nodeId);

if(categoryInher == null)
return;

var lstCategoryInher = categoryInher.ToList<CategoryInheritance>();

foreach (var cat in categoryInher)
{
var attrGrpDef = DocManClient.GetCategoryDefinition(ref DocManAuthen, cat.CategoryID);

if (attrGrpDef == null)
continue;

if (attrGrpDef.DisplayName != categoryName)
continue;

var chunOper = DocManClient.UpgradeCategoryItemsContext(ref DocManAuthen, cat.CategoryID,
8, true);

var upgradeInfo = DocManClient.UpgradeCategoryItems(ref DocManAuthen, chunOper);
string msg = string.Format("Upgrade Category,{0},Node Name,{1},Upgraded Count,{2},Skipped,{3}",
categoryName, node.Name, upgradeInfo.UpgradedCount, upgradeInfo.SkippedCount);
;
}
}
catch (Exception e)
{
LogHelper.Write(e);
}
}
}
}

Thank you in advance

RE: Category Upgrade using Content Webservices

Are you saying that when you do the Context Things are you seeing any DataID's returned? if you would put Debug on you should be able to see the returned data ids and if they are what that is participating in the XECM containers .Sometimes OT code and modules are written by different teams so if the XECM developers does not allow their containers traversable then it wouldn't work.so check if each of the dataids that are needing upgrade is passing through and what kind of errors you get and report

alternatively you can use a WR and try to upgrade it and see if you have a faster mechanism.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
http://www.tek-tips.com/faqs.cfm?fid=2884
http://www.linkedin.com/in/appunair
http://www.livelink.in

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close