MS Entra – Groups – Get Library Item From Library Item Items
MS Entra – Groups – Get Library Item From Library Item Items
Get a group library item from a collection of library items by id.
Action details
| Property | Value |
|---|---|
| Action label | MS Entra – Groups – Get Library Item From Library Item Items |
| Category | CloudTools |
| Apex class and method | GetEntraGroupLibraryItemById.getLibraryItemById |
| Input type | GetEntraGroupLibraryItemById.GetEntraGroupLibraryItemByIdInput |
| Output type | List<MSGraphDriveItem> |
| Authorization | No connection required; searches existing items. |
Prerequisites and permissions
Pass a previously retrieved collection of the documented model type and the ID to find. This helper performs no callout and needs no Microsoft connector or permissions of its own.
Inputs
| Input | Apex field | Type | Required | Description |
|---|---|---|---|---|
| Id | id | String | Yes | Library item id to find |
| Items | items | List<MSGraphDriveItem> | Yes | Library items to search |
Items fields (MSGraphDriveItem)
| Field | Apex field | Type | Required | Description |
|---|---|---|---|---|
| id | id | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| name | name | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| description | description | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| createdDateTime | createdDateTime | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| lastModifiedDateTime | lastModifiedDateTime | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| createdBy | createdBy | MSGraphDriveIdentitySet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| lastModifiedBy | lastModifiedBy | MSGraphDriveIdentitySet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| webUrl | webUrl | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| webDavUrl | webDavUrl | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| size | size | Long | No | Mapped drive item property; populated only when returned and supported by the resource. |
| eTag | eTag | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| cTag | cTag | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| odataType | odataType | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| odataEtag | odataEtag | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| downloadUrl | downloadUrl | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| sourceUrl | sourceUrl | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| conflictBehavior | conflictBehavior | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| content | content | String | No | Mapped drive item property; populated only when returned and supported by the resource. |
| parentReference | parentReference | MSGraphDriveItemReference | No | Mapped drive item property; populated only when returned and supported by the resource. |
| fileSystemInfo | fileSystemInfo | MSGraphDriveFileSystemInfo | No | Mapped drive item property; populated only when returned and supported by the resource. |
| folder | folder | MSGraphDriveFolderFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| file | file | MSGraphDriveFileFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| image | image | MSGraphDriveImageFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| photo | photo | MSGraphDrivePhotoFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| audio | audio | MSGraphDriveAudioFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| video | video | MSGraphDriveVideoFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| location | location | MSGraphDriveGeoCoordinates | No | Mapped drive item property; populated only when returned and supported by the resource. |
| deleted | deleted | MSGraphDriveDeletedFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| pendingOperations | pendingOperations | MSGraphDrivePendingOperations | No | Mapped drive item property; populated only when returned and supported by the resource. |
| packageInfo | packageInfo | MSGraphDrivePackageFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| publication | publication | MSGraphDrivePublicationFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| remoteItem | remoteItem | MSGraphDriveRemoteItem | No | Mapped drive item property; populated only when returned and supported by the resource. |
| root | root | MSGraphDriveRootFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| searchResult | searchResult | MSGraphDriveSearchResult | No | Mapped drive item property; populated only when returned and supported by the resource. |
| shared | shared | MSGraphDriveSharedFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| sharepointIds | sharepointIds | MSGraphDriveSharePointIds | No | Mapped drive item property; populated only when returned and supported by the resource. |
| specialFolder | specialFolder | MSGraphDriveSpecialFolder | No | Mapped drive item property; populated only when returned and supported by the resource. |
| malware | malware | MSGraphDriveMalwareFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| bundle | bundle | MSGraphDriveBundleFacet | No | Mapped drive item property; populated only when returned and supported by the resource. |
| children | children | List<MSGraphDriveItem> | No | Mapped drive item property; populated only when returned and supported by the resource. |
| permissions | permissions | List<MSGraphDrivePermission> | No | Mapped drive item property; populated only when returned and supported by the resource. |
| versions | versions | List<MSGraphDriveItemVersion> | No | Mapped drive item property; populated only when returned and supported by the resource. |
| thumbnails | thumbnails | List<MSGraphDriveThumbnailSet> | No | Mapped drive item property; populated only when returned and supported by the resource. |
| listItem | listItem | MSGraphDriveListItem | No | Mapped drive item property; populated only when returned and supported by the resource. |
| analytics | analytics | MSGraphDriveItemAnalytics | No | Mapped drive item property; populated only when returned and supported by the resource. |
Outputs
Returns one item per request, in input order. A null request, blank ID, null collection, or missing match yields null. A null or empty request list returns one null element. The first matching non-null item is selected.
| Output | Apex field | Type | Description |
|---|---|---|---|
| id | id | String | Mapped drive item property; populated only when returned and supported by the resource. |
| name | name | String | Mapped drive item property; populated only when returned and supported by the resource. |
| description | description | String | Mapped drive item property; populated only when returned and supported by the resource. |
| createdDateTime | createdDateTime | String | Mapped drive item property; populated only when returned and supported by the resource. |
| lastModifiedDateTime | lastModifiedDateTime | String | Mapped drive item property; populated only when returned and supported by the resource. |
| createdBy | createdBy | MSGraphDriveIdentitySet | Mapped drive item property; populated only when returned and supported by the resource. |
| lastModifiedBy | lastModifiedBy | MSGraphDriveIdentitySet | Mapped drive item property; populated only when returned and supported by the resource. |
| webUrl | webUrl | String | Mapped drive item property; populated only when returned and supported by the resource. |
| webDavUrl | webDavUrl | String | Mapped drive item property; populated only when returned and supported by the resource. |
| size | size | Long | Mapped drive item property; populated only when returned and supported by the resource. |
| eTag | eTag | String | Mapped drive item property; populated only when returned and supported by the resource. |
| cTag | cTag | String | Mapped drive item property; populated only when returned and supported by the resource. |
| odataType | odataType | String | Mapped drive item property; populated only when returned and supported by the resource. |
| odataEtag | odataEtag | String | Mapped drive item property; populated only when returned and supported by the resource. |
| downloadUrl | downloadUrl | String | Mapped drive item property; populated only when returned and supported by the resource. |
| sourceUrl | sourceUrl | String | Mapped drive item property; populated only when returned and supported by the resource. |
| conflictBehavior | conflictBehavior | String | Mapped drive item property; populated only when returned and supported by the resource. |
| content | content | String | Mapped drive item property; populated only when returned and supported by the resource. |
| parentReference | parentReference | MSGraphDriveItemReference | Mapped drive item property; populated only when returned and supported by the resource. |
| fileSystemInfo | fileSystemInfo | MSGraphDriveFileSystemInfo | Mapped drive item property; populated only when returned and supported by the resource. |
| folder | folder | MSGraphDriveFolderFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| file | file | MSGraphDriveFileFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| image | image | MSGraphDriveImageFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| photo | photo | MSGraphDrivePhotoFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| audio | audio | MSGraphDriveAudioFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| video | video | MSGraphDriveVideoFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| location | location | MSGraphDriveGeoCoordinates | Mapped drive item property; populated only when returned and supported by the resource. |
| deleted | deleted | MSGraphDriveDeletedFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| pendingOperations | pendingOperations | MSGraphDrivePendingOperations | Mapped drive item property; populated only when returned and supported by the resource. |
| packageInfo | packageInfo | MSGraphDrivePackageFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| publication | publication | MSGraphDrivePublicationFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| remoteItem | remoteItem | MSGraphDriveRemoteItem | Mapped drive item property; populated only when returned and supported by the resource. |
| root | root | MSGraphDriveRootFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| searchResult | searchResult | MSGraphDriveSearchResult | Mapped drive item property; populated only when returned and supported by the resource. |
| shared | shared | MSGraphDriveSharedFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| sharepointIds | sharepointIds | MSGraphDriveSharePointIds | Mapped drive item property; populated only when returned and supported by the resource. |
| specialFolder | specialFolder | MSGraphDriveSpecialFolder | Mapped drive item property; populated only when returned and supported by the resource. |
| malware | malware | MSGraphDriveMalwareFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| bundle | bundle | MSGraphDriveBundleFacet | Mapped drive item property; populated only when returned and supported by the resource. |
| children | children | List<MSGraphDriveItem> | Mapped drive item property; populated only when returned and supported by the resource. |
| permissions | permissions | List<MSGraphDrivePermission> | Mapped drive item property; populated only when returned and supported by the resource. |
| versions | versions | List<MSGraphDriveItemVersion> | Mapped drive item property; populated only when returned and supported by the resource. |
| thumbnails | thumbnails | List<MSGraphDriveThumbnailSet> | Mapped drive item property; populated only when returned and supported by the resource. |
| listItem | listItem | MSGraphDriveListItem | Mapped drive item property; populated only when returned and supported by the resource. |
| analytics | analytics | MSGraphDriveItemAnalytics | Mapped drive item property; populated only when returned and supported by the resource. |
Use in Flow
Use MS Entra – Groups – Get Library Item From Library Item Items where supported. Pass a previously retrieved collection and an ID; check the returned item for null.
Use in custom Apex
This subscriber-org example uses the Apptigent namespace. Replace identifiers and example values before use. No callout context is required.
Apptigent.GetEntraGroupLibraryItemById.GetEntraGroupLibraryItemByIdInput request =
new Apptigent.GetEntraGroupLibraryItemById.GetEntraGroupLibraryItemByIdInput();
request.id = 'REPLACE_WITH_ID';
request.items = new List<Apptigent.MSGraphDriveItem>{ /* supply previously retrieved items */ };
List<Apptigent.MSGraphDriveItem> results =
Apptigent.GetEntraGroupLibraryItemById.getLibraryItemById(
new List<Apptigent.GetEntraGroupLibraryItemById.GetEntraGroupLibraryItemByIdInput>{ request }
);
System.debug(results);
Use in a Lightning Web Component
This collection helper is not exported by msEntraConnectorLib. Search a previously retrieved JavaScript collection with items.find(item => item && item.id === id) || null; this performs no callout. Use the item model expected by the helper rather than a response wrapper.
Error handling and troubleshooting
| Symptom | What to check |
|---|---|
| Null match | Check the collection model and ID. Missing matches are expected null results. |