JS Collection.name returns undefined
How can I get the name of the collection?
I'm having trouble with a little script,
When I
When I
I'm having trouble with a little script,
var collections = selected[0].getCollections();
var collection1 = collections[0];
return collection1.name;
When I
return collection1.name
the result is: (undefined)When I
return collection1
the result is: 5331 (number)
var collection1 = Zotero.Collections.get(CollectionID);
hopefully this will save someone else alot of time.