I can't quite remember how to expand a field of a folder or file. Example: I can do something like Folders/ListItemAllFields/RoleAssignments/Member
to expand the role assignments, but I cannot do this for my custom column.
Details
- Document Library has a column called "Authors"
- The column is a multiple person or group
- The column appears as an AuthorsId field in the JSON response
REST API URL:
/_api/web/GetFolderByServerRelativeUrl('/sites/<name>/Documents')?$expand=Folders/ListItemAllFields
odata=nometadata (response):
[ { ListItemAllFields:
{ FileSystemObjectType: 1,
...,
AuthorsId: [ 2, 3, 5, 8 ]
},
Name: 'My Folder Name',
ItemCount: 20,
...
},
...
]
Failures
This is just more info in attempts I've made that result in Bad Request
failures:
- Folders/ListItemAllFields/Authors/Id
- Folders/ListItemAllFields/Authors
Folders/ListItemAllFields/AuthorsId
does not result in failure, but doesn't expand the resulting array either