# MediaSet.Item(Integer) Method
> Version: _Available or changed with runtime version 1.0._
Gets the unique identifier (GUID) of a media object that is assigned to a MediaSet on a record.
## Syntax
```al
MediaId :=   MediaSet.Item(Index: Integer)
```
## Parameters
MediaSet
Type: mediaset-data-type
An instance of the mediaset-data-type data type.
Index
Type: ../integer/integer-data-type
Specifies the index number that is assigned to the media object in the MediaSet.
## Return Value
MediaId
Type: ../guid/guid-data-type
The unique identifier (GUID) of the media object.
## Example
For an example of using the Item method, see this example<mediaset-insert-method>.
## Related information
mediaset-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/mediaset/mediaset-item-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/mediaset/mediaset-item-method/
