MS Entra – Groups – Get Library Item From Library Item Items

Estimated reading: 8 minutes

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

PropertyValue
Action labelMS Entra – Groups – Get Library Item From Library Item Items
CategoryCloudTools
Apex class and methodGetEntraGroupLibraryItemById.getLibraryItemById
Input typeGetEntraGroupLibraryItemById.GetEntraGroupLibraryItemByIdInput
Output typeList<MSGraphDriveItem>
AuthorizationNo 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

InputApex fieldTypeRequiredDescription
IdidStringYesLibrary item id to find
ItemsitemsList<MSGraphDriveItem>YesLibrary items to search

Items fields (MSGraphDriveItem)

FieldApex fieldTypeRequiredDescription
ididStringNoMapped drive item property; populated only when returned and supported by the resource.
namenameStringNoMapped drive item property; populated only when returned and supported by the resource.
descriptiondescriptionStringNoMapped drive item property; populated only when returned and supported by the resource.
createdDateTimecreatedDateTimeStringNoMapped drive item property; populated only when returned and supported by the resource.
lastModifiedDateTimelastModifiedDateTimeStringNoMapped drive item property; populated only when returned and supported by the resource.
createdBycreatedByMSGraphDriveIdentitySetNoMapped drive item property; populated only when returned and supported by the resource.
lastModifiedBylastModifiedByMSGraphDriveIdentitySetNoMapped drive item property; populated only when returned and supported by the resource.
webUrlwebUrlStringNoMapped drive item property; populated only when returned and supported by the resource.
webDavUrlwebDavUrlStringNoMapped drive item property; populated only when returned and supported by the resource.
sizesizeLongNoMapped drive item property; populated only when returned and supported by the resource.
eTageTagStringNoMapped drive item property; populated only when returned and supported by the resource.
cTagcTagStringNoMapped drive item property; populated only when returned and supported by the resource.
odataTypeodataTypeStringNoMapped drive item property; populated only when returned and supported by the resource.
odataEtagodataEtagStringNoMapped drive item property; populated only when returned and supported by the resource.
downloadUrldownloadUrlStringNoMapped drive item property; populated only when returned and supported by the resource.
sourceUrlsourceUrlStringNoMapped drive item property; populated only when returned and supported by the resource.
conflictBehaviorconflictBehaviorStringNoMapped drive item property; populated only when returned and supported by the resource.
contentcontentStringNoMapped drive item property; populated only when returned and supported by the resource.
parentReferenceparentReferenceMSGraphDriveItemReferenceNoMapped drive item property; populated only when returned and supported by the resource.
fileSystemInfofileSystemInfoMSGraphDriveFileSystemInfoNoMapped drive item property; populated only when returned and supported by the resource.
folderfolderMSGraphDriveFolderFacetNoMapped drive item property; populated only when returned and supported by the resource.
filefileMSGraphDriveFileFacetNoMapped drive item property; populated only when returned and supported by the resource.
imageimageMSGraphDriveImageFacetNoMapped drive item property; populated only when returned and supported by the resource.
photophotoMSGraphDrivePhotoFacetNoMapped drive item property; populated only when returned and supported by the resource.
audioaudioMSGraphDriveAudioFacetNoMapped drive item property; populated only when returned and supported by the resource.
videovideoMSGraphDriveVideoFacetNoMapped drive item property; populated only when returned and supported by the resource.
locationlocationMSGraphDriveGeoCoordinatesNoMapped drive item property; populated only when returned and supported by the resource.
deleteddeletedMSGraphDriveDeletedFacetNoMapped drive item property; populated only when returned and supported by the resource.
pendingOperationspendingOperationsMSGraphDrivePendingOperationsNoMapped drive item property; populated only when returned and supported by the resource.
packageInfopackageInfoMSGraphDrivePackageFacetNoMapped drive item property; populated only when returned and supported by the resource.
publicationpublicationMSGraphDrivePublicationFacetNoMapped drive item property; populated only when returned and supported by the resource.
remoteItemremoteItemMSGraphDriveRemoteItemNoMapped drive item property; populated only when returned and supported by the resource.
rootrootMSGraphDriveRootFacetNoMapped drive item property; populated only when returned and supported by the resource.
searchResultsearchResultMSGraphDriveSearchResultNoMapped drive item property; populated only when returned and supported by the resource.
sharedsharedMSGraphDriveSharedFacetNoMapped drive item property; populated only when returned and supported by the resource.
sharepointIdssharepointIdsMSGraphDriveSharePointIdsNoMapped drive item property; populated only when returned and supported by the resource.
specialFolderspecialFolderMSGraphDriveSpecialFolderNoMapped drive item property; populated only when returned and supported by the resource.
malwaremalwareMSGraphDriveMalwareFacetNoMapped drive item property; populated only when returned and supported by the resource.
bundlebundleMSGraphDriveBundleFacetNoMapped drive item property; populated only when returned and supported by the resource.
childrenchildrenList<MSGraphDriveItem>NoMapped drive item property; populated only when returned and supported by the resource.
permissionspermissionsList<MSGraphDrivePermission>NoMapped drive item property; populated only when returned and supported by the resource.
versionsversionsList<MSGraphDriveItemVersion>NoMapped drive item property; populated only when returned and supported by the resource.
thumbnailsthumbnailsList<MSGraphDriveThumbnailSet>NoMapped drive item property; populated only when returned and supported by the resource.
listItemlistItemMSGraphDriveListItemNoMapped drive item property; populated only when returned and supported by the resource.
analyticsanalyticsMSGraphDriveItemAnalyticsNoMapped 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.

OutputApex fieldTypeDescription
ididStringMapped drive item property; populated only when returned and supported by the resource.
namenameStringMapped drive item property; populated only when returned and supported by the resource.
descriptiondescriptionStringMapped drive item property; populated only when returned and supported by the resource.
createdDateTimecreatedDateTimeStringMapped drive item property; populated only when returned and supported by the resource.
lastModifiedDateTimelastModifiedDateTimeStringMapped drive item property; populated only when returned and supported by the resource.
createdBycreatedByMSGraphDriveIdentitySetMapped drive item property; populated only when returned and supported by the resource.
lastModifiedBylastModifiedByMSGraphDriveIdentitySetMapped drive item property; populated only when returned and supported by the resource.
webUrlwebUrlStringMapped drive item property; populated only when returned and supported by the resource.
webDavUrlwebDavUrlStringMapped drive item property; populated only when returned and supported by the resource.
sizesizeLongMapped drive item property; populated only when returned and supported by the resource.
eTageTagStringMapped drive item property; populated only when returned and supported by the resource.
cTagcTagStringMapped drive item property; populated only when returned and supported by the resource.
odataTypeodataTypeStringMapped drive item property; populated only when returned and supported by the resource.
odataEtagodataEtagStringMapped drive item property; populated only when returned and supported by the resource.
downloadUrldownloadUrlStringMapped drive item property; populated only when returned and supported by the resource.
sourceUrlsourceUrlStringMapped drive item property; populated only when returned and supported by the resource.
conflictBehaviorconflictBehaviorStringMapped drive item property; populated only when returned and supported by the resource.
contentcontentStringMapped drive item property; populated only when returned and supported by the resource.
parentReferenceparentReferenceMSGraphDriveItemReferenceMapped drive item property; populated only when returned and supported by the resource.
fileSystemInfofileSystemInfoMSGraphDriveFileSystemInfoMapped drive item property; populated only when returned and supported by the resource.
folderfolderMSGraphDriveFolderFacetMapped drive item property; populated only when returned and supported by the resource.
filefileMSGraphDriveFileFacetMapped drive item property; populated only when returned and supported by the resource.
imageimageMSGraphDriveImageFacetMapped drive item property; populated only when returned and supported by the resource.
photophotoMSGraphDrivePhotoFacetMapped drive item property; populated only when returned and supported by the resource.
audioaudioMSGraphDriveAudioFacetMapped drive item property; populated only when returned and supported by the resource.
videovideoMSGraphDriveVideoFacetMapped drive item property; populated only when returned and supported by the resource.
locationlocationMSGraphDriveGeoCoordinatesMapped drive item property; populated only when returned and supported by the resource.
deleteddeletedMSGraphDriveDeletedFacetMapped drive item property; populated only when returned and supported by the resource.
pendingOperationspendingOperationsMSGraphDrivePendingOperationsMapped drive item property; populated only when returned and supported by the resource.
packageInfopackageInfoMSGraphDrivePackageFacetMapped drive item property; populated only when returned and supported by the resource.
publicationpublicationMSGraphDrivePublicationFacetMapped drive item property; populated only when returned and supported by the resource.
remoteItemremoteItemMSGraphDriveRemoteItemMapped drive item property; populated only when returned and supported by the resource.
rootrootMSGraphDriveRootFacetMapped drive item property; populated only when returned and supported by the resource.
searchResultsearchResultMSGraphDriveSearchResultMapped drive item property; populated only when returned and supported by the resource.
sharedsharedMSGraphDriveSharedFacetMapped drive item property; populated only when returned and supported by the resource.
sharepointIdssharepointIdsMSGraphDriveSharePointIdsMapped drive item property; populated only when returned and supported by the resource.
specialFolderspecialFolderMSGraphDriveSpecialFolderMapped drive item property; populated only when returned and supported by the resource.
malwaremalwareMSGraphDriveMalwareFacetMapped drive item property; populated only when returned and supported by the resource.
bundlebundleMSGraphDriveBundleFacetMapped drive item property; populated only when returned and supported by the resource.
childrenchildrenList<MSGraphDriveItem>Mapped drive item property; populated only when returned and supported by the resource.
permissionspermissionsList<MSGraphDrivePermission>Mapped drive item property; populated only when returned and supported by the resource.
versionsversionsList<MSGraphDriveItemVersion>Mapped drive item property; populated only when returned and supported by the resource.
thumbnailsthumbnailsList<MSGraphDriveThumbnailSet>Mapped drive item property; populated only when returned and supported by the resource.
listItemlistItemMSGraphDriveListItemMapped drive item property; populated only when returned and supported by the resource.
analyticsanalyticsMSGraphDriveItemAnalyticsMapped 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

SymptomWhat to check
Null matchCheck the collection model and ID. Missing matches are expected null results.

See Entra connector introduction.

Share this Doc

MS Entra – Groups – Get Library Item From Library Item Items

Or copy link

CONTENTS

Free eBook: The Ultimate Guide to Power Platform Custom Connectors

Antimanual

Ask our AI support assistant your questions about our platform, features, and services.

You are offline
Chatbot avatar
What can I help you with?

Subscribe

×
Cancel