Hi,
Is there any easy way to apply an RM classificaiton to document ?
Can you share code samples ?
Thank you very much,
If you are talking oScript, have a look at $RECMAN.RIMSUtils.AssignMetaData. It requires a few parameters, some are obvious and some not so much. ClassifyInfo is an assoc and for our needs (we apply only 1 RMClassification per object) we specify:
classifyInfo.bUpdateStorage = trueclassifyInfo.primary = trueclassifyInfo.classid = item.classid
where classid is the "nodeid" from rm_classification for your classification. ManagedList is a list of RM mangaged objects (which you can obtain from $RECMAN.RIMSUtils.GetManagedSubTypes).
Cheers...