cancel
Showing results for 
Search instead for 
Did you mean: 

Classification API in Webscripts?

garnaat
Champ in-the-making
Champ in-the-making
Hi -

I'm trying to access the classification API described here:

http://wiki.alfresco.com/wiki/JavaScript_API#Classification_API

in an Execute script for a simple WebScript.  However, I'm getting a 500 error with (among other things) this:

org.mozilla.javascript.EcmaError - ReferenceError: "getRootCategories" is not defined. (AlfrescoScript#1)

This is with the 2.1 Community release.  Am I doing something wrong?  Or did this API not make it into the release?

Thanks,

Mitch
1 REPLY 1

davidc
Star Contributor
Star Contributor
An example:

var c = classification.getRootCategories("cm:generalclassifiable");

All category methods are accessed via the 'classification' root object.