This content has been marked as final. Show 3 replies
I am also trying to write metadata with no luck. I actually tried to do this 6 months ago and gave up. I have been asked to revisit this task, now that we are updated to 10.1.2.3.7.
FileManager.updateFolder() is the method you want to use. I have been trying to set the following five attributes:
Attributes.ALLOWED_CATEGORIES (long array of category ids)
Attributes.REQUIRED_CATEGORIES (long array of category ids)
I got some sample code at one point that demonstrated how to write metadata attributes to folders. I copied the methodology faithfully, but it never worked. I always get an InvalidAttribute error when calling updateFolder(). We'll see if a revisit to my code uncovers an error, of if the API is just broken. It is noteworthy that there are no updateFolder() calls in the webstarterII application, where one would hope to find an example.
That is all I can tell you for now. If I make any progress, I'll let you know.