Hi @reina.ueno,
Yes, box.Toolkit.getFolderContents() can help retrieve the items inside a Box folder. The FolderContents object represents the folder’s contents as a list of entries; each entry includes information about an item, such as its name, type, and ID. Folder IDs are part of each folder entry.
You can loop through the entries and match the folder by name. The folder name isn’t a key you can use to look up an ID directly, and names may not be unique, so check the item type and confirm the parent folder if needed.
box.Toolkit toolkit = new box.Toolkit();
box.FolderContents contents = toolkit.getFolderContents(parentFolderId);
for (box.Folder item : contents.folders) {
if (item.name == 'Subfolder Name') {
System.debug('Folder ID: ' + item.id);
}
}
The exact property names may vary by Toolkit version. If FolderContents doesn’t expose folder entries in your installed package, check the class definition in Salesforce or use the Box SDK for Salesforce to call the Box folder items endpoint. The Toolkit is intended for common integration customizations and isn’t a full Box Content API wrapper. Box Dev Docs
See the Salesforce Developer Toolkit documentation and code samples.