I have been able to use getSelectedItems()
without issue so I can perform operations, but from my (hopefully incorrect) understanding, the only other value that is returned is the type of item that's selected (objtype)?
I'm not sure how to perform something on getSelectedItems(ctx) to retrieve, for instance, the value in "Name" (ie., SamplePhoto.jpg). I'm thinking I need to use another method to compare the IDs to something which has all of the field info for every file, and then retrieve the name values which have IDs matching those in getSelectedItems(ctx).id
edit: The supplied answers so far do not help since it seems like returning or populating global variables is not possible.